Lines Matching refs:compute_client
67 self.compute_client = mock.MagicMock()
71 return_value=self.compute_client)
95 self.compute_client.GetInstanceIP.return_value = fake_ip
96 self.compute_client.GenerateImageName.return_value = fake_image
97 self.compute_client.GenerateInstanceName.return_value = fake_instance
98 self.compute_client.GetDataDiskName.return_value = disk_name
107 self.compute_client.CreateImage.assert_called_with(
109 self.compute_client.CreateInstance.assert_called_with(
115 self.compute_client.DeleteImage.assert_called_with(fake_image)
141 self.compute_client.GetInstanceIP.return_value = fake_ip
142 self.compute_client.GenerateInstanceName.return_value = fake_instance
164 self.compute_client.GetZonesByInstances.return_value = (
166 self.compute_client.DeleteInstances.return_value = (instance_names, [],
169 self.compute_client.DeleteInstances.assert_called_once_with(