aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/staticMetaObject_test.py
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-07-06 20:02:56 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:32 -0300
commitb731b70fb22df04029cd2b86497125b0cacb60f1 (patch)
treecbc4c5f5e1561dcbc1750d36bf15875ca5736b90 /tests/QtCore/staticMetaObject_test.py
parent09810443bf705bd02c6838c49eda2f9fdd1dcb71 (diff)
Created unit test for duplicated signals.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'tests/QtCore/staticMetaObject_test.py')
-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 36ef10478..f80872ccc 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()