Signal objects redirect calls for homonymous methods.
This commit is contained in:
parent
4b3b56acd7
commit
7fab5c03a9
4 changed files with 162 additions and 99 deletions
|
|
@ -67,5 +67,5 @@ target_link_libraries(testbinding
|
|||
add_dependencies(testbinding pyside QtCore libpyside pysidetest)
|
||||
|
||||
|
||||
PYSIDE_TEST(homonimoussignalandmethod_test.py)
|
||||
PYSIDE_TEST(homonymoussignalandmethod_test.py)
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
import unittest
|
||||
from testbinding import TestObject
|
||||
|
||||
'''Tests the behaviour of homonimous signals and slots.'''
|
||||
'''Tests the behaviour of homonymous signals and slots.'''
|
||||
|
||||
class HomonimousSignalAndMethodTest(unittest.TestCase):
|
||||
class HomonymousSignalAndMethodTest(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.value = 123
|
||||
|
|
@ -39,13 +39,13 @@ class HomonimousSignalAndMethodTest(unittest.TestCase):
|
|||
def testCallingInstanceMethodWithoutArguments(self):
|
||||
self.assertRaises(TypeError, TestObject.idValue)
|
||||
|
||||
def testHomonimousSignalAndMethod(self):
|
||||
def testHomonymousSignalAndMethod(self):
|
||||
self.assertEqual(self.obj.idValue(), self.value)
|
||||
|
||||
def testHomonimousSignalAndStaticMethod(self):
|
||||
def testHomonymousSignalAndStaticMethod(self):
|
||||
self.assertEqual(TestObject.staticMethodDouble(3), 6)
|
||||
|
||||
def testHomonimousSignalAndStaticMethodFromInstance(self):
|
||||
def testHomonymousSignalAndStaticMethodFromInstance(self):
|
||||
self.assertEqual(self.obj.staticMethodDouble(4), 8)
|
||||
|
||||
if __name__ == '__main__':
|
||||
Loading…
Add table
Add a link
Reference in a new issue