def testTypedefWithNamespace(self): self._called = None o = TestObjectWithoutNamespace(None) o.emitSignalWithTypedef.connect(self.callback) o.emitSignalWithTypedef.emit(10) self.assertEqual(10, self._called) self._called = None o = TestObjectWithoutNamespace(None) o.emitSignalWithTypedef.connect(self.callback) o.callSignalWithTypedef(10) self.assertEqual(10, self._called)
def testWithNamespace1(self): self._called = None o = TestObjectWithoutNamespace(None) o.emitSignalWithNamespace.connect(self.callback) o.emitSignalWithNamespace.emit(o) self.assert_(o == self._called) self._called = None o = TestObjectWithoutNamespace(None) o.emitSignalWithNamespace.connect(self.callback) o.callSignalWithNamespace(o) self.assert_(o == self._called)
def testWithNamespace1(self): self._called = None o = TestObjectWithoutNamespace(None) o.emitSignalWithNamespace.connect(self.callback) o.emitSignalWithNamespace.emit(o) self.assertTrue(o == self._called) self._called = None o = TestObjectWithoutNamespace(None) o.emitSignalWithNamespace.connect(self.callback) o.callSignalWithNamespace(o) self.assertTrue(o == self._called)