args_dont_match.py renamed to args_dont_match_test.py
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
c8e9080972
commit
e791f15afc
1 changed files with 0 additions and 0 deletions
21
tests/signals/args_dont_match_test.py
Normal file
21
tests/signals/args_dont_match_test.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
import unittest
|
||||
from PySide.QtCore import *
|
||||
|
||||
class ArgsDontMatch(unittest.TestCase):
|
||||
|
||||
def callback(self, arg1):
|
||||
self.ok = True
|
||||
|
||||
def testConnectSignalToSlotWithLessArgs(self):
|
||||
self.ok = False
|
||||
obj1 = QObject()
|
||||
QObject.connect(obj1, SIGNAL('the_signal(int, int, int)'), self.callback)
|
||||
obj1.emit(SIGNAL('the_signal(int, int, int)'), 1, 2, 3)
|
||||
|
||||
self.assert_(self.ok)
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue