Lines Matching refs:subprocess
23 import subprocess
155 self.Patch(subprocess, "check_call")
158 self.assertEqual(subprocess.check_call.call_count, 0) #pylint: disable=no-member
166 self.Patch(subprocess, "check_call")
169 self.assertEqual(subprocess.check_call.call_count, 1) #pylint: disable=no-member
170 subprocess.check_call.assert_called_with( #pylint: disable=no-member
183 self.Patch(subprocess, "check_output")
187 self.assertEqual(subprocess.check_output.call_count, 1) #pylint: disable=no-member
188 subprocess.check_output.assert_called_with( #pylint: disable=no-member
373 call_side_effect = subprocess.CalledProcessError(123, "fake",
376 self.Patch(subprocess, "check_call", side_effect=call_side_effect)
394 self.Patch(subprocess, "check_call", return_value=True)
421 self.Patch(subprocess, "check_call", return_value=True)
423 subprocess.check_call.assert_called_with(["pkill", "-9", "-f", fake_ss_vncviewer_pattern])
425 subprocess.check_call.call_count = 0
428 subprocess.check_call.assert_not_called()