From: Jelte Jansen Date: Thu, 2 Feb 2012 14:29:06 +0000 (+0100) Subject: [640] been editing wrong file again X-Git-Tag: trac2351_base~261^2~1^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=caf03348be996e4fe58efa70927b119b4fdf3d84;p=thirdparty%2Fkea.git [640] been editing wrong file again --- diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in index d330bc8061..3a30a24b8e 100644 --- a/src/bin/bind10/tests/bind10_test.py.in +++ b/src/bin/bind10/tests/bind10_test.py.in @@ -36,6 +36,7 @@ import isc.bind10.socket_cache import errno from isc.testutils.parse_args import TestOptParser, OptsError +from isc.testutils.ccsession_mock import MockModuleCCSession class TestProcessInfo(unittest.TestCase): def setUp(self): @@ -103,14 +104,6 @@ class TestProcessInfo(unittest.TestCase): self.assertTrue(type(pi.pid) is int) self.assertNotEqual(pi.pid, old_pid) -class MockCCSession: - """Simple test class to check whether 'shutdown' calls stop()""" - def __init__(self): - self.stopped = False - - def stop(self): - self.stopped = True - class TestCacheCommands(unittest.TestCase): """ Test methods of boss related to the socket cache and socket handling. @@ -1179,7 +1172,7 @@ class TestBossComponents(unittest.TestCase): bob._component_configurator.shutdown = self.__nullary_hook self.__called = False - bob.ccs = MockCCSession() + bob.ccs = MockModuleCCSession() self.assertFalse(bob.ccs.stopped) bob.shutdown()