~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_upgrade.py

Merge from integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        """Upgrade simple v0.0.4 format to v6"""
42
42
        eq = self.assertEquals
43
43
        self.build_tree_contents(_upgrade1_template)
44
 
        upgrade('.')
45
 
        b = Branch.open('.')
 
44
        upgrade(u'.')
 
45
        b = Branch.open(u'.')
46
46
        eq(b._branch_format, 6)
47
47
        rh = b.revision_history()
48
48
        eq(rh,
66
66
        its contents."""
67
67
        eq = self.assertEquals
68
68
        self.build_tree_contents(_ghost_template)
69
 
        upgrade('.')
70
 
        b = Branch.open('.')
 
69
        upgrade(u'.')
 
70
        b = Branch.open(u'.')
71
71
        revision_id = b.revision_history()[1]
72
72
        rev = b.storage.get_revision(revision_id)
73
73
        eq(len(rev.parent_ids), 2)