Commit 2c2459fd authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2353] Rewrite code that depended on BoB.start_ccsession() returning a value

parent 145a4ed5
......@@ -509,8 +509,6 @@ class BoB:
self.ccs.start()
logger.debug(DBG_PROCESS, BIND10_STARTED_CC)
return self.ccs
# A couple of utility methods for starting processes...
def start_process(self, name, args, c_channel_env, port=None, address=None):
......
......@@ -1755,12 +1755,12 @@ class TestBossComponents(unittest.TestCase):
tmp = isc.config.ModuleCCSession
isc.config.ModuleCCSession = DummySession
ccs = bob.start_ccsession({})
self.assertEqual(bind10_src.SPECFILE_LOCATION, ccs.specfile)
self.assertEqual(bob.config_handler, ccs.config_handler)
self.assertEqual(bob.command_handler, ccs.command_handler)
self.assertEqual(bob.msgq_socket_file, ccs.socket_file)
self.assertTrue(ccs.started)
bob.start_ccsession({})
self.assertEqual(bind10_src.SPECFILE_LOCATION, bob.ccs.specfile)
self.assertEqual(bob.config_handler, bob.ccs.config_handler)
self.assertEqual(bob.command_handler, bob.ccs.command_handler)
self.assertEqual(bob.msgq_socket_file, bob.ccs.socket_file)
self.assertTrue(bob.ccs.started)
isc.config.ModuleCCSession = tmp
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment