Lines Matching refs:Patch
45 self.Patch(list_instances, "ChooseOneRemoteInstance", return_value=mock.MagicMock())
46 self.Patch(list_instances, "GetInstancesFromInstanceNames", return_value=mock.MagicMock())
52 self.Patch(glob, "glob", return_value=["fake.img"])
57 self.Patch(os.path, "isfile", return_value=True)
66 self.Patch(utils, "GetBuildEnvironmentVariable",
68 self.Patch(os.path, "isfile", return_value=False)
77 self.Patch(utils, "GetBuildEnvironmentVariable",
84 self.Patch(utils, "GetBuildEnvironmentVariable",
86 self.Patch(os.path, "isdir", return_value=True)
94 self.Patch(utils, "GetBuildEnvironmentVariable",
96 self.Patch(os.path, "isdir", return_value=True)
105 self.Patch(glob, "glob", return_value=["fake.img"])
113 self.Patch(os.path, "isfile", return_value=True)
123 self.Patch(os.path, "isfile", return_value=False)
124 self.Patch(os.path, "exists", return_value=True)
143 self.Patch(subprocess, "Popen", return_value=fake_subprocess)
152 self.Patch(subprocess, "Popen", return_value=fake_subprocess)
158 self.Patch(subprocess, "Popen", return_value=fake_subprocess)
168 self.Patch(android_build_client, "AndroidBuildClient",
170 self.Patch(auth, "CreateCredentials", return_value=mock.MagicMock())
171 self.Patch(build_client, "GetBranch", return_value=expected_branch)
175 self.Patch(self.AvdSpec, "_GetBranchFromRepo", return_value="repo_branch")
316 self.Patch(os.path, "isfile", return_value=True)
319 self.Patch(os.path, "exists", return_value=True)
329 self.Patch(os.path, "isfile", return_value=False)
330 self.Patch(os.path, "exists", return_value=True)
338 self.Patch(os.path, "exists", side_effect=[False, True])
343 self.Patch(os.path, "exists", side_effect=[False, False])