Created unit test for bug #931.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
58e3040802
commit
33301b9744
2 changed files with 16 additions and 0 deletions
15
tests/QtCore/bug_931.py
Normal file
15
tests/QtCore/bug_931.py
Normal file
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue