aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_300_test.py
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-09-03 15:47:44 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-09-03 15:50:15 -0300
commitf1bc92a2dd0f9a19ac8dcf9699f65d4ee2d61945 (patch)
treee6319ff4928b216d95ba0eb1f8e45d4220934061 /tests/QtGui/bug_300_test.py
parentcb48464859110d4e6ebcf59d70a59804c55d4705 (diff)
bug_300_test moved to QtGui, because it tests a class from QtGui.
Diffstat (limited to 'tests/QtGui/bug_300_test.py')
-rw-r--r--tests/QtGui/bug_300_test.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/QtGui/bug_300_test.py b/tests/QtGui/bug_300_test.py
new file mode 100644
index 000000000..ec02cdf02
--- /dev/null
+++ b/tests/QtGui/bug_300_test.py
@@ -0,0 +1,17 @@
+from PySide.QtGui import QStringListModel
+from PySide.QtCore import QModelIndex
+import unittest
+
+class TestQAbstractItemModelSignals(unittest.TestCase):
+ def sigCallback(self, index, r, c):
+ self._called = True
+
+ def testSignals(self):
+ self._called = False
+ m = QStringListModel()
+ m.rowsAboutToBeInserted[QModelIndex,int,int].connect(self.sigCallback)
+ m.insertRows(0, 3)
+ self.assert_(self._called)
+
+if __name__ == '__main__':
+ unittest.main()