~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Andrew Bennetts
  • Date: 2010-08-17 06:45:33 UTC
  • mfrom: (5050.17.9 2.2)
  • mto: This revision was merged to the branch mainline in revision 5379.
  • Revision ID: andrew.bennetts@canonical.com-20100817064533-kof2i2f3r6mr4ayb
Merge lp:bzr/2.2 into lp:bzr, including fixes for #192859, #224373, #300062, #585667, #614404, #617503.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1401
1401
        self.assertIsInstance(params, RepoInitHookParams)
1402
1402
        self.assertTrue(hasattr(params, 'bzrdir'))
1403
1403
        self.assertTrue(hasattr(params, 'repository'))
 
1404
 
 
1405
    def test_post_repo_init_hook_repr(self):
 
1406
        param_reprs = []
 
1407
        bzrdir.BzrDir.hooks.install_named_hook('post_repo_init',
 
1408
            lambda params: param_reprs.append(repr(params)), None)
 
1409
        self.make_repository('foo')
 
1410
        self.assertLength(1, param_reprs)
 
1411
        param_repr = param_reprs[0]
 
1412
        self.assertStartsWith(param_repr, '<RepoInitHookParams for ')
 
1413