def test_retrieve_artifacts_fails_if_missing_environment(self):
    self.find_environment_mock.return_value = []
    CommandLineInterface(['get', 'job', self.fake_env, self.mock_job_id]).execute()
    self.exit_mock.assert_called_with(1)
def test_retrieve_artifacts_fails_if_missing_environment(self):
    self.find_environment_mock.return_value = []
    CommandLineInterface(['get', 'job', self.fake_env, self.mock_job_id]).execute()
    self.exit_mock.assert_called_with(1)