  def testListBuckets(self, mock_gcs_api):
    """Test GCS bucket List operation."""
    api_list_bucket = mock_gcs_api.return_value.buckets.return_value.list
    api_list_bucket.return_value.execute.return_value = gcp_mocks.MOCK_GCS_BUCKETS
    list_results = gcp_mocks.FAKE_GCS.ListBuckets()
    self.assertEqual(1, len(list_results))
    self.assertEqual('fake-bucket', list_results[0]['name'])
    self.assertEqual('123456789', list_results[0]['projectNumber'])
Test GCS bucket List operation.
tests/providers/gcp/internal/test_storage.py