def METHOD_NAME(resources_mock):
    tool_mock = MagicMock(return_value=23)
    resources_mock.return_value = tool_mock
    tag_tool = TagTool(
        TagsTool(), name=None, pk=None, priority=None, project=None, slug=None
    )
    # no project set - returns the tags.resources_tool, but doesnt call it
    assert tag_tool.resource_tool is tool_mock
    assert not tool_mock.called
    # project set
    tag_tool = TagTool(
        TagsTool(), name=None, pk=None, priority=None, project=43, slug=None
    )
    # tool was called with project as args
    assert tag_tool.resource_tool == 23
    assert list(tool_mock.call_args) == [(), {"projects": [43]}]