diff options
Diffstat (limited to 'tests/probetests.py')
-rw-r--r-- | tests/probetests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/probetests.py b/tests/probetests.py index 8dbac29..37748d8 100644 --- a/tests/probetests.py +++ b/tests/probetests.py @@ -470,6 +470,7 @@ class ProbeProxyTest(unittest.TestCase): event_address = 'event1' event2 = MockAddon() event2.i, event2.s = 10, "event2" + event_address2 = 'event2' def callback(event): global message_box @@ -499,7 +500,7 @@ class ProbeProxyTest(unittest.TestCase): #ErrorCase: unsubcribe for non subscribed event #Test the unsubscribe - self.probeProxy.unsubscribe("otheraddress") + self.probeProxy.unsubscribe(event_address2) assert not "unsubscribe" in self.mockObj.MockCall, "Unsubscribe should not be called if event is not subscribeed" self.probeProxy.unsubscribe(event_address) |