diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-07-18 18:02:03 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:37 -0300 |
commit | 6f872f484c587461f6203440560a665bdf76c3d8 (patch) | |
tree | fb76ab6b24482e03242516436963c497889f5783 /tests/QtCore/bug_931.py | |
parent | 304a2658408e81e8bfb4c37a9e1996907f5ab94f (diff) |
Created unit test for bug #931.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/QtCore/bug_931.py')
-rw-r--r-- | tests/QtCore/bug_931.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/QtCore/bug_931.py b/tests/QtCore/bug_931.py new file mode 100644 index 000000000..0f0206ac9 --- /dev/null +++ b/tests/QtCore/bug_931.py @@ -0,0 +1,15 @@ +import unittest + +from PySide.QtCore import QObject, Signal +o = QObject() + +class CheckSignalType(unittest.TestCase): + def testSignal(self): + self.assertTrue(isinstance(QObject.destroyed, Signal)) + self.assertEqual(type(QObject.destroyed), Signal) + + self.assertEqual(type(o.destroyed).__name__, "SignalInstance") + self.assertNotEqual(type(o.destroyed), Signal) + +if __name__ == '__main__': + unittest.main() |