/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_transform.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-25 03:06:42 UTC
  • mfrom: (7045.3.4 python3-r)
  • Revision ID: breezy.the.bot@gmail.com-20180725030642-oghhedvui3470wy6
Fix another ~500 tests on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-r/+merge/350430

Show diffs side-by-side

added added

removed removed

Lines of Context:
3489
3489
    def test_deserialize_missing(self):
3490
3490
        tt = self.get_preview()
3491
3491
        tt.deserialize(iter(self.missing_records()))
3492
 
        self.assertEqual({b'boo': b'new-1'}, tt._non_present_ids)
 
3492
        self.assertEqual({b'boo': 'new-1'}, tt._non_present_ids)
3493
3493
 
3494
3494
    def make_modification_preview(self):
3495
3495
        LINES_ONE = b'aa\nbb\ncc\ndd\n'
3536
3536
            b'foo': b'new-1',
3537
3537
            b'': b'new-0',}
3538
3538
        attribs[b'_removed_contents'] = [b'new-1']
3539
 
        contents = [('new-1', 'file',
 
3539
        contents = [(b'new-1', b'file',
3540
3540
                     b'i 4\na\nb\nc\nd\n\n')]
3541
3541
        return self.make_records(attribs, contents)
3542
3542
 
3566
3566
        attribs[b'_tree_path_ids'] = {
3567
3567
            b'foo': b'new-1',
3568
3568
            b'': b'new-0',}
3569
 
        contents = [('new-1', 'file',
 
3569
        contents = [(b'new-1', b'file',
3570
3570
                     b'i 4\na\nb\nc\nd\n\n')]
3571
3571
        return self.make_records(attribs, contents)
3572
3572