Lines Matching refs:compute_client
66 self.compute_client = mock.MagicMock()
70 return_value=self.compute_client)
94 self.compute_client.GetInstanceIP.return_value = fake_ip
95 self.compute_client.GenerateImageName.return_value = fake_image
96 self.compute_client.GenerateInstanceName.return_value = fake_instance
97 self.compute_client.GetDataDiskName.return_value = disk_name
106 self.compute_client.CreateImage.assert_called_with(
108 self.compute_client.CreateInstance.assert_called_with(
114 self.compute_client.DeleteImage.assert_called_with(fake_image)
140 self.compute_client.GetInstanceIP.return_value = fake_ip
141 self.compute_client.GenerateInstanceName.return_value = fake_instance
163 self.compute_client.GetZonesByInstances.return_value = (
165 self.compute_client.DeleteInstances.return_value = (instance_names, [],
168 self.compute_client.DeleteInstances.assert_called_once_with(