Lines Matching refs:subprocess
19 import subprocess
54 self.Patch(subprocess, "Popen",
55 side_effect=subprocess.CalledProcessError(
57 self.assertRaises(subprocess.CalledProcessError,
85 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
90 subprocess.Popen.assert_called_with(expected_cmd,
98 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
108 subprocess.Popen.assert_called_with(expected_cmd,
116 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
121 subprocess.Popen.assert_called_with(expected_cmd,
129 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
139 subprocess.Popen.assert_called_with(expected_cmd,
147 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
152 subprocess.Popen.assert_called_with(expected_cmd,
160 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
170 subprocess.Popen.assert_called_with(expected_cmd,
215 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
223 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
232 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
240 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
249 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)
257 self.Patch(subprocess, "Popen", return_value=self.created_subprocess)