Skip to content
Snippets Groups Projects
Commit d502dd60 authored by hvanwelbergen's avatar hvanwelbergen
Browse files

made python 2.6 compatible

parent 51a7e0c3
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ class ComponentNotifierTest(unittest.TestCase): ...@@ -60,7 +60,7 @@ class ComponentNotifierTest(unittest.TestCase):
# IsIterableContainingInAnyOrder.containsInAnyOrder(SEND_CAT.toArray(new String[0]))); # IsIterableContainingInAnyOrder.containsInAnyOrder(SEND_CAT.toArray(new String[0])));
def testNotifyAtNotifyNew(self): def testNotifyAtNotifyNew(self):
self._sendNotify("new", {"testsnd1"}); self._sendNotify("new", set(["testsnd1"]));
verify(self.mockOutBuffer, times(2)).add(any()) verify(self.mockOutBuffer, times(2)).add(any())
#TODO: python mockito cannot yet use hamcrest matchers, so cannot easily test if the message is correct :( #TODO: python mockito cannot yet use hamcrest matchers, so cannot easily test if the message is correct :(
#ArgumentCaptor<LocalIU> argument = ArgumentCaptor.forClass(LocalIU.class); #ArgumentCaptor<LocalIU> argument = ArgumentCaptor.forClass(LocalIU.class);
...@@ -70,7 +70,7 @@ class ComponentNotifierTest(unittest.TestCase): ...@@ -70,7 +70,7 @@ class ComponentNotifierTest(unittest.TestCase):
#assertEquals("old", iu.getPayload().get("state")); #assertEquals("old", iu.getPayload().get("state"));
def testNoNotifyAtNotifyOld(self): def testNoNotifyAtNotifyOld(self):
self._sendNotify("old", {"testsnd1"}); self._sendNotify("old", set(["testsnd1"]));
verify(self.mockOutBuffer, times(1)).add(any()) verify(self.mockOutBuffer, times(1)).add(any())
class MyListener(object): class MyListener(object):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment