Lines Matching refs:Patch

67         self.Patch(os, "chmod")
68 self.Patch(tempfile, "mkdtemp", return_value="/tmp/tempdir")
69 self.Patch(shutil, "rmtree")
78 self.Patch(os, "chmod")
79 self.Patch(tempfile, "mkdtemp", return_value="/tmp/tempdir")
80 self.Patch(shutil, "rmtree")
96 self.Patch(os, "chmod")
97 self.Patch(tempfile, "mkdtemp", return_value="/tmp/tempdir")
100 self.Patch(shutil, "rmtree", side_effect=expected_error)
115 self.Patch(os, "chmod")
116 self.Patch(tempfile, "mkdtemp", return_value="/tmp/tempdir")
118 self.Patch(shutil, "rmtree", side_effect=expected_error)
131 self.Patch(os, "chmod")
132 self.Patch(tempfile, "mkdtemp", return_value="/tmp/tempdir")
134 self.Patch(shutil, "rmtree", side_effect=expected_error)
154 self.Patch(os.path, "exists", side_effect=[True, True])
155 self.Patch(subprocess, "check_call")
156 self.Patch(os, "makedirs", return_value=True)
164 self.Patch(os.path, "exists", return_value=False)
165 self.Patch(os, "makedirs", return_value=True)
166 self.Patch(subprocess, "check_call")
167 self.Patch(os, "rename")
180 self.Patch(os.path, "exists", side_effect=[False, True, True])
181 self.Patch(os, "makedirs", return_value=True)
183 self.Patch(subprocess, "check_output")
184 self.Patch(os, "rename")
229 mock_sleep = self.Patch(time, "sleep")
306 self.Patch(os, "getgroups", return_value=[1, 2, 3])
313 self.Patch(grp, "getgrgid", side_effect=[gr1, gr2, gr3])
321 self.Patch(grp, "getgrgid", side_effect=[gr1, gr2, gr3])
376 self.Patch(subprocess, "check_call", side_effect=call_side_effect)
392 self.Patch(utils, "PickFreePort", return_value=fake_port)
393 self.Patch(utils, "_ExecuteCommand")
394 self.Patch(subprocess, "check_call", return_value=True)
420 self.Patch(utils, "IsCommandRunning", return_value=True)
421 self.Patch(subprocess, "check_call", return_value=True)
426 self.Patch(utils, "IsCommandRunning", return_value=False)