Lines Matching refs:subprocess
24 import subprocess
164 self.Patch(subprocess, "check_call")
167 self.assertEqual(subprocess.check_call.call_count, 0) #pylint: disable=no-member
175 self.Patch(subprocess, "check_call")
178 self.assertEqual(subprocess.check_call.call_count, 1) #pylint: disable=no-member
179 subprocess.check_call.assert_called_with( #pylint: disable=no-member
192 self.Patch(subprocess, "check_output")
196 self.assertEqual(subprocess.check_output.call_count, 1) #pylint: disable=no-member
197 subprocess.check_output.assert_called_with( #pylint: disable=no-member
377 call_side_effect = subprocess.CalledProcessError(123, "fake",
380 self.Patch(subprocess, "check_call", side_effect=call_side_effect)
398 self.Patch(subprocess, "check_call", return_value=True)
426 self.Patch(subprocess, "check_call", return_value=True)
463 self.Patch(subprocess, "check_call", return_value=True)
465 subprocess.check_call.assert_called_with(["pkill", "-9", "-f", fake_ss_vncviewer_pattern])
467 subprocess.check_call.call_count = 0
470 subprocess.check_call.assert_not_called()