Lines Matching refs:subprocess
19 import subprocess
51 self.Patch(subprocess, "Popen",
52 side_effect=subprocess.CalledProcessError(
54 self.assertRaises(subprocess.CalledProcessError,
82 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
87 subprocess.Popen.assert_called_with(expected_cmd,
95 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
105 subprocess.Popen.assert_called_with(expected_cmd,
113 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
118 subprocess.Popen.assert_called_with(expected_cmd,
126 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
136 subprocess.Popen.assert_called_with(expected_cmd,
144 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
149 subprocess.Popen.assert_called_with(expected_cmd,
157 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
167 subprocess.Popen.assert_called_with(expected_cmd,