/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-31 16:28:11 UTC
  • mfrom: (5622.3.15 more-lazy-hooks)
  • Revision ID: pqm@pqm.ubuntu.com-20110331162811-w1uw1lgpr5fiawp5
(jelmer) Support installing lazy hooks for all existing hook points,
 deprecate Hooks.create_hook. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1437
1437
        # Note this test won't fail with hooks that the core library doesn't
1438
1438
        # use - but it trigger with a plugin that adds hooks, so its still a
1439
1439
        # useful warning in that case.
1440
 
        self.assertEqual(bzrlib.branch.BranchHooks(),
1441
 
            bzrlib.branch.Branch.hooks)
1442
 
        self.assertEqual(bzrlib.smart.server.SmartServerHooks(),
 
1440
        self.assertEqual(bzrlib.branch.BranchHooks(), bzrlib.branch.Branch.hooks)
 
1441
        self.assertEqual(
 
1442
            bzrlib.smart.server.SmartServerHooks(),
1443
1443
            bzrlib.smart.server.SmartTCPServer.hooks)
1444
 
        self.assertEqual(bzrlib.commands.CommandHooks(),
1445
 
            bzrlib.commands.Command.hooks)
 
1444
        self.assertEqual(
 
1445
            bzrlib.commands.CommandHooks(), bzrlib.commands.Command.hooks)
1446
1446
 
1447
1447
    def test__gather_lsprof_in_benchmarks(self):
1448
1448
        """When _gather_lsprof_in_benchmarks is on, accumulate profile data.