Lines Matching refs:patch
160 @mock.patch.object(errors, "GceOperationTimeoutError")
161 @mock.patch.object(utils, "PollAndWait")
283 @mock.patch.object(gcompute_client.ComputeClient, "GetImage")
286 with mock.patch.object(self.compute_client._service, "images",
326 @mock.patch.object(gcompute_client.ComputeClient, "DeleteImage")
327 @mock.patch.object(gcompute_client.ComputeClient, "CheckImageExists",
329 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation",
380 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
411 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
553 @mock.patch.object(gcompute_client.ComputeClient, "GetImage")
554 @mock.patch.object(gcompute_client.ComputeClient, "GetNetworkUrl")
555 @mock.patch.object(gcompute_client.ComputeClient, "GetSubnetworkUrl")
556 @mock.patch.object(gcompute_client.ComputeClient, "GetMachineType")
557 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
558 @mock.patch("getpass.getuser", return_value="fake_user")
625 @mock.patch.object(gcompute_client.ComputeClient, "GetImage")
626 @mock.patch.object(gcompute_client.ComputeClient, "GetNetworkUrl")
627 @mock.patch.object(gcompute_client.ComputeClient, "GetSubnetworkUrl")
628 @mock.patch.object(gcompute_client.ComputeClient, "GetMachineType")
629 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
630 @mock.patch("getpass.getuser", return_value="fake_user")
702 @mock.patch.object(gcompute_client.ComputeClient, "GetAcceleratorUrl")
703 @mock.patch.object(gcompute_client.ComputeClient, "GetImage")
704 @mock.patch.object(gcompute_client.ComputeClient, "GetNetworkUrl")
705 @mock.patch.object(gcompute_client.ComputeClient, "GetSubnetworkUrl")
706 @mock.patch.object(gcompute_client.ComputeClient, "GetMachineType")
707 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
708 @mock.patch("getpass.getuser", return_value="fake_user")
774 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
790 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
934 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
954 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
969 @mock.patch.object(gcompute_client.ComputeClient, "GetAcceleratorUrl")
970 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
992 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
1008 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")
1253 with mock.patch.object(six.moves.builtins, "open", m):
1385 with mock.patch.object(six.moves.builtins, "open", m):
1401 with mock.patch.object(six.moves.builtins, "open", m):
1408 @mock.patch.object(gcompute_client.ComputeClient, "WaitOnOperation")