diff --git a/ipaacalib/python/test/src/testnotifier.py b/ipaacalib/python/test/src/testnotifier.py index 3b741b3a6b3104d96f626207dc191b3af66c8565..96d8423aa02d2b5d92a7648f06b550c487047c3a 100644 --- a/ipaacalib/python/test/src/testnotifier.py +++ b/ipaacalib/python/test/src/testnotifier.py @@ -60,7 +60,7 @@ class ComponentNotifierTest(unittest.TestCase): # IsIterableContainingInAnyOrder.containsInAnyOrder(SEND_CAT.toArray(new String[0]))); def testNotifyAtNotifyNew(self): - self._sendNotify("new", {"testsnd1"}); + self._sendNotify("new", set(["testsnd1"])); verify(self.mockOutBuffer, times(2)).add(any()) #TODO: python mockito cannot yet use hamcrest matchers, so cannot easily test if the message is correct :( #ArgumentCaptor<LocalIU> argument = ArgumentCaptor.forClass(LocalIU.class); @@ -70,7 +70,7 @@ class ComponentNotifierTest(unittest.TestCase): #assertEquals("old", iu.getPayload().get("state")); def testNoNotifyAtNotifyOld(self): - self._sendNotify("old", {"testsnd1"}); + self._sendNotify("old", set(["testsnd1"])); verify(self.mockOutBuffer, times(1)).add(any()) class MyListener(object):