def test_docs(self): doc = ("Invoked after changing the tip of a branch object. Called with" " a bzrlib.branch.PostChangeBranchTipParams object") hook = HookPoint("post_tip_change", doc, (0, 15), None) self.assertEqual("post_tip_change\n" "~~~~~~~~~~~~~~~\n" "\n" "Introduced in: 0.15\n" "\n" "Invoked after changing the tip of a branch object. Called with a\n" "bzrlib.branch.PostChangeBranchTipParams object\n", hook.docs())
def test_docs(self): doc = ("Invoked after changing the tip of a branch object. Called with" " a bzrlib.branch.PostChangeBranchTipParams object") hook = HookPoint("post_tip_change", doc, (0, 15), None) self.assertEqual( "post_tip_change\n" "~~~~~~~~~~~~~~~\n" "\n" "Introduced in: 0.15\n" "\n" "Invoked after changing the tip of a branch object. Called with a\n" "bzrlib.branch.PostChangeBranchTipParams object\n", hook.docs())