~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-30 11:45:54 UTC
  • mto: (5622.4.1 uninstall-hook)
  • mto: This revision was merged to the branch mainline in revision 5747.
  • Revision ID: jelmer@samba.org-20110330114554-zx7av89umf2dd9an
Don't require arguments to hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1486
1486
        # Note this test won't fail with hooks that the core library doesn't
1487
1487
        # use - but it trigger with a plugin that adds hooks, so its still a
1488
1488
        # useful warning in that case.
1489
 
        self.assertEqual(
1490
 
            bzrlib.branch.BranchHooks("bzrlib.tests.test_selftest", "some_hooks"),
1491
 
            bzrlib.branch.Branch.hooks)
1492
 
        self.assertEqual(
1493
 
            bzrlib.smart.server.SmartServerHooks("bzrlib.tests.test_selftest", "hooks"),
 
1489
        self.assertEqual(bzrlib.branch.BranchHooks(), bzrlib.branch.Branch.hooks)
 
1490
        self.assertEqual(
 
1491
            bzrlib.smart.server.SmartServerHooks(),
1494
1492
            bzrlib.smart.server.SmartTCPServer.hooks)
1495
1493
        self.assertEqual(
1496
 
            bzrlib.commands.CommandHooks("bzrlib.tests.test_selftest", "hooks"),
1497
 
            bzrlib.commands.Command.hooks)
 
1494
            bzrlib.commands.CommandHooks(), bzrlib.commands.Command.hooks)
1498
1495
 
1499
1496
    def test__gather_lsprof_in_benchmarks(self):
1500
1497
        """When _gather_lsprof_in_benchmarks is on, accumulate profile data.