diff options
Diffstat (limited to 'tests/signals/signal_func_test.py')
-rw-r--r-- | tests/signals/signal_func_test.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/signals/signal_func_test.py b/tests/signals/signal_func_test.py new file mode 100644 index 000000000..39bd1b293 --- /dev/null +++ b/tests/signals/signal_func_test.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- + +import unittest + +from PySide.QtCore import SIGNAL, SLOT + +class SIGNALSLOTTests(unittest.TestCase): + '''Test the output of SIGNAL and SLOT.''' + + def testSIGNAL(self): + #SIGNAL function + a = "foobar" + self.assertEqual(str(SIGNAL(a)), "2foobar") + + def testSLOT(self): + #SLOT function + a = "foobar" + self.assertEqual(str(SLOT(a)), "1foobar") + +if __name__ == '__main__': + unittest.main() |