From d502dd6021698df46c0ec228569a20873e670ce1 Mon Sep 17 00:00:00 2001 From: hvanwelbergen <hvanwelbergen@techfak.uni-bielefeld.de> Date: Fri, 4 Jan 2013 22:44:33 +0100 Subject: [PATCH] made python 2.6 compatible --- ipaacalib/python/test/src/testnotifier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipaacalib/python/test/src/testnotifier.py b/ipaacalib/python/test/src/testnotifier.py index 3b741b3..96d8423 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): -- GitLab