Beispiel #1
0
 def test_wait(self):
     proc = FakeProcess({}, {})
     proc.returncode = 45
     self.assertEqual(45, proc.wait())
Beispiel #2
0
 def test_wait_with_timeout_and_endtime(self):
     proc = FakeProcess({}, {})
     self.assertEqual(0, proc.wait(timeout=4, endtime=7))
Beispiel #3
0
 def test_args(self):
     proc = FakeProcess({"args": ["ls", "-lh"]}, {})
     proc.returncode = 45
     self.assertEqual(45, proc.wait())
     self.assertEqual(proc.args, ["ls", "-lh"])
Beispiel #4
0
 def test_wait(self):
     proc = FakeProcess({}, {})
     proc.returncode = 45
     self.assertEqual(45, proc.wait())
Beispiel #5
0
 def test_wait_with_timeout_and_endtime(self):
     proc = FakeProcess({}, {})
     self.assertEqual(0 , proc.wait(timeout=4, endtime=7))
Beispiel #6
0
 def test_args(self):
     proc = FakeProcess({"args": ["ls", "-lh"]}, {})
     proc.returncode = 45
     self.assertEqual(45, proc.wait())
     self.assertEqual(proc.args, ["ls", "-lh"])