def METHOD_NAME(rf, project):
    class FakeProjectContextGetObjectView(FakeProjectContextView):
        get_context_from_object = True
        def get_object(self):
            return mock.Mock(project=project, module=None)
    request = rf.get("/url")
    response, view = dispatch_view(FakeProjectContextGetObjectView, request)
    assert view.project == project