def METHOD_NAME(self):
    """on-modify-reject - a well-behaved, failing, on-modify hook."""
    hookname = 'on-modify-reject'
    self.t.hooks.add_default(hookname, log=True)
    code, out, err = self.t("add foo")
    code, out, err = self.t.runError("1 modify +tag")
    hook = self.t.hooks[hookname]
    hook.assertTriggeredCount(1)
    hook.assertExitcode(1)
    logs = hook.get_logs()
    self.assertEqual(logs["output"]["msgs"][0], "FEEDBACK")