~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-31 14:58:27 UTC
  • mto: This revision was merged to the branch mainline in revision 5747.
  • Revision ID: jelmer@samba.org-20110331145827-39ydfy5jtalrz8ht
Fix branch hooks constructor test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
571
571
 
572
572
    def test_constructor(self):
573
573
        """Check that creating a BranchHooks instance has the right defaults."""
574
 
        hooks = _mod_branch.BranchHooks("bzrlib.tests.test_branch", "branch.hooks")
 
574
        hooks = _mod_branch.BranchHooks()
575
575
        self.assertTrue("set_rh" in hooks, "set_rh not in %s" % hooks)
576
576
        self.assertTrue("post_push" in hooks, "post_push not in %s" % hooks)
577
577
        self.assertTrue("post_commit" in hooks, "post_commit not in %s" % hooks)