~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: John Arbash Meinel
  • Date: 2010-08-13 19:08:57 UTC
  • mto: (5050.17.7 2.2)
  • mto: This revision was merged to the branch mainline in revision 5379.
  • Revision ID: john@arbash-meinel.com-20100813190857-mvzwnimrxvm0zimp
Lots of documentation updates.

We had a lot of http links pointing to the old domain. They should
all now be properly updated to the new domain. (only bazaar-vcs.org
entry left is for pqm, which seems to still reside at the old url.)

Also removed one 'TODO' doc entry about switching to binary xdelta, since
we basically did just that with groupcompress.

Show diffs side-by-side

added added

removed removed

Lines of Context:
552
552
        self.assertTrue(hasattr(params, 'bzrdir'))
553
553
        self.assertTrue(hasattr(params, 'branch'))
554
554
 
 
555
    def test_post_branch_init_hook_repr(self):
 
556
        param_reprs = []
 
557
        _mod_branch.Branch.hooks.install_named_hook('post_branch_init',
 
558
            lambda params: param_reprs.append(repr(params)), None)
 
559
        branch = self.make_branch('a')
 
560
        self.assertLength(1, param_reprs)
 
561
        param_repr = param_reprs[0]
 
562
        self.assertStartsWith(param_repr, '<BranchInitHookParams of ')
 
563
 
555
564
    def test_post_switch_hook(self):
556
565
        from bzrlib import switch
557
566
        calls = []