208
208
no_env_status = mojo.juju.status.Juju1Status()
209
209
no_env_status._get_status()
210
210
mock_check_output.assert_called_with(
211
['/usr/bin/timeout', '--kill-after', '5', '600',
212
213
# Second test with an environment set
213
214
env_status = mojo.juju.status.Juju1Status(environment="test-env")
215
216
mock_check_output.assert_called_with(
216
['juju', 'status', '--format=yaml', '-e', 'test-env'])
217
['/usr/bin/timeout', '--kill-after', '5', '600',
218
'juju', 'status', '--format=yaml', '-e', 'test-env'])
218
220
with mock.patch('subprocess.check_output') as mock_check_output:
219
221
# Check that if we're calling _get_status where _status_output is