Lines Matching refs:mock
20 import mock
87 with mock.patch("os.path.isfile") as chkfile:
95 @mock.patch("os.path.dirname", return_value="")
96 @mock.patch.object(utils, "CheckOutput")
107 @mock.patch.object(six.moves, "input")
117 @mock.patch.object(gcp_setup_runner, "UpdateConfigFile")
118 @mock.patch.object(utils, "CreateSshKeyPairIfNotExist")
127 with mock.patch('os.path.expanduser') as ssh_path:
137 mock.call(self.cfg_path, "ssh_private_key_path",
139 mock.call(self.cfg_path, "ssh_public_key_path",
142 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_CreateStableHostImage")
143 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_EnableGcloudServices")
144 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_SetupProject")
145 @mock.patch.object(gcp_setup_runner, "GoogleSDKBins")
148 with mock.patch("acloud.setup.google_sdk.GoogleSDK"):
155 @mock.patch.object(gcp_setup_runner, "UpdateConfigFile")
167 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_CheckBillingEnable")
168 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_NeedProjectSetup")
169 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_SetupClientIDSecret")
170 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_UpdateProject")
188 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_CheckBillingEnable")
189 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_NeedProjectSetup")
190 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_SetupClientIDSecret")
191 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_UpdateProject")
202 @mock.patch.object(utils, "GetUserAnswerYes")
228 @mock.patch.object(utils, "CheckOutput")
234 mock.call(["gcloud", "services", "enable",
237 mock.call(["gcloud", "services", "enable",
241 @mock.patch.object(utils, "CheckOutput")
248 mock.call(["gcloud", "services", "enable", "service_name"],
251 @mock.patch.object(utils, "CheckOutput")
258 mock.call(