def METHOD_NAME(self, args: PythonHookArgs, mocker: MockerFixture) -> None:
    """Test cleanup."""
    project = mocker.patch.object(PythonFunction, "project")
    assert not PythonFunction(Mock(), **args.dict()).cleanup()
    project.cleanup.assert_called_once_with()