  def testGetValue(self, mock_get_operation):
    """Test that the correct value is retrieved for the given key."""
    mock_get_operation.return_value = {
        # https://cloud.google.com/compute/docs/reference/rest/v1/instances/get
        'name': gcp_mocks.FAKE_INSTANCE.name
    }
    self.assertEqual('fake-instance', gcp_mocks.FAKE_INSTANCE.GetValue('name'))
    self.assertIsNone(gcp_mocks.FAKE_INSTANCE.GetValue('key'))
Test that the correct value is retrieved for the given key.
tests/providers/gcp/internal/test_compute_base_resource.py