def test_run_command_subprocess_error(self, mock_subprocess): mock_subprocess.return_value = ('test', 'error') with self.assertRaises(Exception): condor.run_command("echo test".split(" "))
def test_run_command(self): assert condor.run_command("echo test".split(" ")) == 'test\n'