Lines Matching refs:subprocess
24 import subprocess
163 self.Patch(subprocess, "check_call")
166 self.assertEqual(subprocess.check_call.call_count, 0) #pylint: disable=no-member
174 self.Patch(subprocess, "check_call")
177 self.assertEqual(subprocess.check_call.call_count, 1) #pylint: disable=no-member
178 subprocess.check_call.assert_called_with( #pylint: disable=no-member
191 self.Patch(subprocess, "check_output")
195 self.assertEqual(subprocess.check_output.call_count, 1) #pylint: disable=no-member
196 subprocess.check_output.assert_called_with( #pylint: disable=no-member
395 call_side_effect = subprocess.CalledProcessError(123, "fake",
477 self.Patch(subprocess, "Popen", return_value=fake_subprocess)
496 self.Patch(subprocess, "check_output", return_value=fake_ps_output)
535 self.Patch(subprocess, "check_call", return_value=True)
537 subprocess.check_call.assert_called_with(["pkill", "-9", "-f", fake_ss_vncviewer_pattern])
539 subprocess.check_call.call_count = 0
542 subprocess.check_call.assert_not_called()