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

  • Committer: Martin
  • Date: 2017-06-05 20:48:31 UTC
  • mto: This revision was merged to the branch mainline in revision 6658.
  • Revision ID: gzlist@googlemail.com-20170605204831-20accykspjcrx0a8
Apply 2to3 dict fixer and clean up resulting mess using view helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
939
939
        new_inv = CHKInventory.deserialise(chk_bytes, bytes, ("revid",))
940
940
        root_entry = new_inv[inv.root.file_id]
941
941
        self.assertEqual(None, root_entry._children)
942
 
        self.assertEqual(['file'], root_entry.children.keys())
 
942
        self.assertEqual({'file'}, set(root_entry.children))
943
943
        file_direct = new_inv["fileid"]
944
944
        file_found = root_entry.children['file']
945
945
        self.assertEqual(file_direct.kind, file_found.kind)
1472
1472
            s = expected_children.setdefault(entry.parent_id, [])
1473
1473
            s.append(entry.file_id)
1474
1474
        val_children = dict((k, sorted(v)) for k, v
1475
 
                            in val_children.iteritems())
 
1475
                            in val_children.items())
1476
1476
        expected_children = dict((k, sorted(v)) for k, v
1477
 
                            in expected_children.iteritems())
 
1477
                            in expected_children.items())
1478
1478
        self.assertEqual(expected_children, val_children)
1479
1479
 
1480
1480
    def test_make_simple_inventory(self):