~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_hooks.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-06 15:59:43 UTC
  • mfrom: (2309.4.14 unicode_id_warnings)
  • Revision ID: pqm@pqm.ubuntu.com-20070306155943-73eafa9adb83ea73
(John Arbash Meinel) Change safe_*_id to issue a deprecation warning, and clean up places that were still generating unicode ids.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        tree.unlock()
50
50
        branch = tree.branch
51
51
        Branch.hooks.install_hook('set_rh', self.capture_set_rh_hook)
52
 
        branch.set_revision_history([u'foo'])
 
52
        branch.set_revision_history(['f\xc2\xb5'])
53
53
        self.assertEqual(self.hook_calls,
54
 
            [('set_rh', branch, [u'foo'], True)])
 
54
            [('set_rh', branch, ['f\xc2\xb5'], True)])
55
55
 
56
56
    def test_set_rh_branch_is_locked(self):
57
57
        branch = self.make_branch('source')