  def testGetBucketACLs(self, mock_gcs_api):
    """Test GCS ACL List operation."""
    api_acl_object = mock_gcs_api.return_value.bucketAccessControls.return_value.list
    api_acl_object.return_value.execute.return_value = gcp_mocks.MOCK_GCS_BUCKET_ACLS
    api_iam_object = mock_gcs_api.return_value.buckets.return_value.getIamPolicy
    api_iam_object.return_value.execute.return_value = gcp_mocks.MOCK_GCS_BUCKET_IAM
    acl_results = gcp_mocks.FAKE_GCS.GetBucketACLs('gs://fake-bucket')
    self.assertEqual(2, len(acl_results))
    self.assertEqual(2, len(acl_results['OWNER']))
    self.assertEqual(2, len(acl_results['roles/storage.legacyBucketOwner']))
Test GCS ACL List operation.
tests/providers/gcp/internal/test_storage.py