def METHOD_NAME(self):
    self.config.manual_auth_hook = os.path.abspath(os.sep)  # is / on UNIX
    self.config.validate_hooks = True
    with pytest.raises(errors.HookCommandNotFound):
        self.auth.prepare()