def call_fut(self, mock_objectmap, **kwargs): from adhocracy_core.graph import Graph context = testing.DummyResource() context.__objectmap__ = mock_objectmap graph = Graph(context=context) return Graph.get_reftypes(graph, **kwargs)