self.get_process_exit_status_called = True
return (53, 0)
-class MockBob2(BoB):
+class MockBobSimple(BoB):
def __init__(self):
BoB.__init__(self)
# Set which process has been started
def test_start_simple(self):
'''Test simple process startup.'''
- bob = MockBob2()
+ bob = MockBobSimple()
bob.c_channel_env = {}
# non-verbose case
# do different things.
def test_start_auth2(self):
'''Test that b10-auth is started.'''
- bob = MockBob2()
+ bob = MockBobSimple()
bob.c_channel_env = {}
bob.start_auth()
self.assertEqual('b10-auth', bob.started_process_name)
# do different things.
def test_start_resolver2(self):
'''Test that b10-resolver is started.'''
- bob = MockBob2()
+ bob = MockBobSimple()
bob.c_channel_env = {}
bob.start_resolver()
self.assertEqual('b10-resolver', bob.started_process_name)
def test_start_cmdctl(self):
'''Test that b10-cmdctl is started.'''
- bob = MockBob2()
+ bob = MockBobSimple()
bob.c_channel_env = {}
bob.start_cmdctl()
self.assertEqual('b10-cmdctl', bob.started_process_name)