  def testListOrgPolicy(self, mock_grm_api):
    """Validates the ListOrgPolicy function"""
    api_list_org_policy = mock_grm_api.return_value.projects.return_value.listOrgPolicies
    api_list_org_policy.return_value.execute.return_value = gcp_mocks.MOCK_ORG_POLICIES
    response = gcp_mocks.FAKE_CLOUD_RESOURCE_MANAGER.ListOrgPolicy(
        'projects/000000000000'
    )
    api_list_org_policy.assert_called_with(
        resource='projects/000000000000')
    self.assertEqual(len(response.get('policies', [])), 2)
Validates the ListOrgPolicy function
tests/providers/gcp/internal/test_cloudresourcemanager.py