32
40
self.assertEqual(args.health_checker, 'baz')
34
42
def test_run_while_healthy_or_timeout(self):
35
client = EnvJujuClient(JujuData('foo', {}), None, '/foo')
43
client = EnvJujuClient(SimpleEnvironment('foo', {}), None, '/foo')
36
44
runner = MonkeyRunner('foo', 'bar', 'script', client, total_timeout=60)
37
45
runner.expire_time = (datetime.now() - timedelta(seconds=1))
38
46
with patch.object(runner, 'is_healthy', autospec=True,