Commit 9bbd1664 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2922] Clarify tests

Rename local variable so it doesn't shadow the name of module. There's
no functional change, just making it less confusing.
parent 9d30cc97
......@@ -17,7 +17,7 @@
# we want to be explicit about what we do, like when hijacking a library
# call used by the b10-init.
from init import Init, ProcessInfo, parse_args, dump_pid, unlink_pid_file, \
_BASETIME, ProcessStartError
import init
# XXX: environment tests are currently disabled, due to the preprocessor
......@@ -1815,11 +1815,11 @@ class TestInitComponents(unittest.TestCase):
self.called += 1
raise isc.config.RPCRecipientMissing("Not yet")
init = MockInitSimple()
init.wait_time = 1
init.ccs = RpcSession()
self.assertRaises(ProcessStartError, init.wait_msgq)
self.assertEqual(10, init.ccs.called)
b10init = MockInitSimple()
b10init.wait_time = 1
b10init.ccs = RpcSession()
self.assertRaises(init.ProcessStartError, b10init.wait_msgq)
self.assertEqual(10, b10init.ccs.called)
def test_start_cfgmgr(self):
'''Test that b10-cfgmgr is started.'''
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