From 00c4fe9e5f2373fcefe6fb3f46e641a3c416423e Mon Sep 17 00:00:00 2001 From: mike Date: Sun, 22 Nov 2009 04:24:14 +0000 Subject: LP 448319 : Moving action installation to asynchronous version with confirmation --- (limited to 'tests/enginetests.py') diff --git a/tests/enginetests.py b/tests/enginetests.py index 30d68de..f1efe45 100644 --- a/tests/enginetests.py +++ b/tests/enginetests.py @@ -43,13 +43,14 @@ class MockProbeMgr(object): currentActivity = property(fget=lambda s:s, fset=lambda s, v: v) - def install(self, action, block=False): + def install(self, action, action_installed_cb, error_cb): self.action = action + action_installed_cb(action, 'Action1') - def update(self, action, newaction, block=False): + def update(self, action_address, newaction): self.action = newaction - def uninstall(self, action, block=False): + def uninstall(self, action_address): self.action = None def subscribe(self, event, callback): @@ -73,7 +74,6 @@ class TutorialRunnerTest(unittest.TestCase): def setUp(self): self.pM = MockProbeMgr() - def tearDown(self): self.pM = None -- cgit v0.9.1