'Test the delete_stack_domain_project function.'

def test_delete_stack_domain_project_forbidden(self):

    self._stub_domain_admin_client(domain_id=None)
    self.mock_admin_client.projects = self.m.CreateMockAnything()
    self.mock_admin_client.projects.get(project='aprojectid').AndRaise(kc_exception.Forbidden)
    self.m.ReplayAll()
    ctx = utils.dummy_context()
    self.patchobject(ctx, '_create_auth_plugin')
    ctx.trust_id = None
    heat_ks_client = heat_keystoneclient.KeystoneClient(ctx)
    heat_ks_client.delete_stack_domain_project(project_id='aprojectid')
