  def testGetOrgPolicy(self, mock_grm_api):
    """Validates the GetOrgPolicy function"""
    api_get_org_policy = mock_grm_api.return_value.projects.return_value.getOrgPolicy
    api_get_org_policy.return_value.execute.return_value = gcp_mocks.MOCK_ORG_POLICY
    response = gcp_mocks.FAKE_CLOUD_RESOURCE_MANAGER.GetOrgPolicy(
        'projects/000000000000', 'fake-policy')
    api_get_org_policy.assert_called_with(
        resource='projects/000000000000',
        body={'constraint': 'constraints/fake-policy'})
    self.assertEqual(response, {
    'constraint': 'constraints/testpolicy',
    'etag': 'abcdefghijk='
    })
Validates the GetOrgPolicy function
tests/providers/gcp/internal/test_cloudresourcemanager.py