1
''' Test bug 389: http://bugs.openbossa.org/show_bug.cgi?id=389'''
4
from helper import UsesQApplication
5
from PySide.QtGui import QTreeWidgetItemIterator, QTreeWidgetItem, QTreeWidget
7
class BugTest(UsesQApplication):
9
treeWidget = QTreeWidget()
10
treeWidget.setColumnCount(1)
13
items.append(QTreeWidgetItem(None, ["item: %i" % i]))
15
treeWidget.insertTopLevelItems(0, items);
16
_iter = QTreeWidgetItemIterator(treeWidget)
20
self.assert_(item is items[index])
25
if __name__ == '__main__':