summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-07-06 20:02:56 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-07-11 15:34:51 -0300
commited5563bfce496a91dd328bd8cd918e62a448a218 (patch)
tree45fa0b3fb4aede411848013d5ab719f4f354256a
parentab4ecfa72f0112f1331bf9903a211e3b4b8fe905 (diff)
downloadpyside-ed5563bfce496a91dd328bd8cd918e62a448a218.tar.gz
pyside-ed5563bfce496a91dd328bd8cd918e62a448a218.tar.xz
pyside-ed5563bfce496a91dd328bd8cd918e62a448a218.zip
Created unit test for duplicated signals.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
-rw-r--r--tests/QtCore/staticMetaObject_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/QtCore/staticMetaObject_test.py b/tests/QtCore/staticMetaObject_test.py
index 36ef104..f80872c 100644
--- a/tests/QtCore/staticMetaObject_test.py
+++ b/tests/QtCore/staticMetaObject_test.py
@@ -14,5 +14,10 @@ class testAttribute(unittest.TestCase):
self.assertEqual(mo.className(), 'MyObject')
self.assertTrue(mo.indexOfSlot('slot1(int,QString)') > -1)
+ def testDuplicateSlot(self):
+ mo = MyObject.staticMetaObject
+ self.assertEqual(mo.indexOfSignal('destroyed(void)'), -1)
+ self.assertTrue(mo.indexOfSignal('destroyed()') > -1)
+
if __name__ == '__main__':
unittest.main()