Ejemplo n.º 1
0
 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(" "))
Ejemplo n.º 2
0
 def test_run_command(self):
     assert condor.run_command("echo test".split(" ")) == 'test\n'