575
575
def test_constructor(self):
576
576
"""Check that creating a BranchHooks instance has the right defaults."""
577
577
hooks = _mod_branch.BranchHooks()
579
578
self.assertTrue("post_push" in hooks, "post_push not in %s" % hooks)
580
579
self.assertTrue("post_commit" in hooks, "post_commit not in %s" % hooks)
581
580
self.assertTrue("pre_commit" in hooks, "pre_commit not in %s" % hooks)