/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_testament.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-22 02:05:12 UTC
  • mto: (6973.12.2 python3-k)
  • mto: This revision was merged to the branch mainline in revision 6992.
  • Revision ID: jelmer@jelmer.uk-20180522020512-btpj2jchdlehi3en
Add more bees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
            self.expected('sample_unicode').encode('utf-8'), t.as_text())
145
145
 
146
146
    def test_from_tree(self):
147
 
        tree = self.b.repository.revision_tree('test@user-2')
 
147
        tree = self.b.repository.revision_tree(b'test@user-2')
148
148
        testament = self.testament_class().from_revision_tree(tree)
149
149
        text_1 = testament.as_short_text()
150
150
        text_2 = self.from_revision(self.b.repository,
152
152
        self.assertEqual(text_1, text_2)
153
153
 
154
154
    def test___init__(self):
155
 
        revision = self.b.repository.get_revision('test@user-2')
156
 
        tree = self.b.repository.revision_tree('test@user-2')
 
155
        revision = self.b.repository.get_revision(b'test@user-2')
 
156
        tree = self.b.repository.revision_tree(b'test@user-2')
157
157
        testament_1 = self.testament_class()(revision, tree)
158
158
        text_1 = testament_1.as_short_text()
159
159
        text_2 = self.from_revision(self.b.repository,