aboutsummaryrefslogtreecommitdiffstats
path: root/tests/signals/signal_func_test.py
blob: 39bd1b2936d774ef1a30c6cc896a3e548898ae1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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()