/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 21:22:37 UTC
  • mfrom: (7045.4.19 python3-t)
  • Revision ID: breezy.the.bot@gmail.com-20180725212237-16h5uliv36e2fv54
Fix another ~400 tests on Python 3.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
3416
3416
 
3417
3417
    def symlink_creation_records(self):
3418
3418
        attribs = self.default_attribs()
3419
 
        attribs['_id_number'] = 2
3420
 
        attribs['_new_name'] = {b'new-1': u'foo\u1234'.encode('utf-8')}
3421
 
        attribs['_new_parent'] = {b'new-1': b'new-0'}
 
3419
        attribs[b'_id_number'] = 2
 
3420
        attribs[b'_new_name'] = {b'new-1': u'foo\u1234'.encode('utf-8')}
 
3421
        attribs[b'_new_parent'] = {b'new-1': b'new-0'}
3422
3422
        contents = [(b'new-1', b'symlink', u'bar\u1234'.encode('utf-8'))]
3423
3423
        return self.make_records(attribs, contents)
3424
3424
 
3444
3444
 
3445
3445
    def destruction_records(self):
3446
3446
        attribs = self.default_attribs()
3447
 
        attribs['_id_number'] = 3
3448
 
        attribs['_removed_id'] = [b'new-1']
3449
 
        attribs['_removed_contents'] = [b'new-2']
3450
 
        attribs['_tree_path_ids'] = {
 
3447
        attribs[b'_id_number'] = 3
 
3448
        attribs[b'_removed_id'] = [b'new-1']
 
3449
        attribs[b'_removed_contents'] = [b'new-2']
 
3450
        attribs[b'_tree_path_ids'] = {
3451
3451
            b'': b'new-0',
3452
3452
            u'foo\u1234'.encode('utf-8'): b'new-1',
3453
3453
            b'bar': b'new-2',
3501
3501
 
3502
3502
    def modification_records(self):
3503
3503
        attribs = self.default_attribs()
3504
 
        attribs['_id_number'] = 2
3505
 
        attribs['_tree_path_ids'] = {
 
3504
        attribs[b'_id_number'] = 2
 
3505
        attribs[b'_tree_path_ids'] = {
3506
3506
            b'file': b'new-1',
3507
3507
            b'': b'new-0',}
3508
 
        attribs['_removed_contents'] = [b'new-1']
 
3508
        attribs[b'_removed_contents'] = [b'new-1']
3509
3509
        contents = [(b'new-1', b'file',
3510
3510
                     b'i 1\nz\n\nc 0 1 1 1\ni 1\nx\n\nc 0 3 3 1\n')]
3511
3511
        return self.make_records(attribs, contents)