~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-01-30 21:12:30 UTC
  • mfrom: (2245.1.3 branch-hook)
  • Revision ID: pqm@pqm.ubuntu.com-20070130211230-64c2d9b4bce9304f
(robertc) Add Branch hooks faciity, allowing clean creation and management of hooks around branch API calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
852
852
        self.assertContainsRe(
853
853
            output_stream.getvalue(),
854
854
            r"\d+ms/ +\d+ms\n$")
855
 
        
 
855
 
 
856
    def test_hooks_sanitised(self):
 
857
        """The bzrlib hooks should be sanitised by setUp."""
 
858
        self.assertEqual(bzrlib.branch.BranchHooks(),
 
859
            bzrlib.branch.Branch.hooks)
 
860
 
856
861
    def test__gather_lsprof_in_benchmarks(self):
857
862
        """When _gather_lsprof_in_benchmarks is on, accumulate profile data.
858
863