~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Robert Collins
  • Date: 2007-01-29 16:58:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2246.
  • Revision ID: robertc@robertcollins.net-20070129165849-409f5714fa7ebe48
New Branch hooks facility, with one initial hook 'set_rh' which triggers
whenever the revision history is set. This allows triggering on e.g.
push, pull, commit, and so on. Developed for use with the branchrss
plugin. See bzrlib/tests/branch_implementations/test_hooks for more
details. (Robert Collins)

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.Branch.DefaultHooks(),
 
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