  def testGetImageFamily(self, mock_gce_api):
    """Test getting the Image Family API object."""
    images_mock = mock_gce_api.return_value.images.return_value
    images_mock.getFromFamily.return_value.execute.return_value = gcp_mocks.MOCK_COMPUTE_IMAGE
    image_name = 'debian-10-buster-v20210916'
    compute_image = gcp_mocks.FAKE_ANALYSIS_PROJECT.compute.GetImageFamily(
        'debian-10', 'debian-cloud')
    self.assertEqual(image_name, compute_image.get('name'))
    images_mock.getFromFamily.assert_called()
Test getting the Image Family API object.
tests/providers/gcp/internal/test_compute.py