BIND 10 trac640, updated. caf03348be996e4fe58efa70927b119b4fdf3d84 [640] been editing wrong file again

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Feb 2 14:29:17 UTC 2012


The branch, trac640 has been updated
       via  caf03348be996e4fe58efa70927b119b4fdf3d84 (commit)
      from  f45a95082d8db85dff8d7b0bf0e0817e7175103e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit caf03348be996e4fe58efa70927b119b4fdf3d84
Author: Jelte Jansen <jelte at isc.org>
Date:   Thu Feb 2 15:29:06 2012 +0100

    [640] been editing wrong file again

-----------------------------------------------------------------------

Summary of changes:
 src/bin/bind10/tests/bind10_test.py.in |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index d330bc8..3a30a24 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()




More information about the bind10-changes mailing list