~jelmer/brz/osutils-fstype

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_inventory.py

  • Committer: Jelmer Vernooij
  • Date: 2018-12-18 20:58:51 UTC
  • mfrom: (7122.3.101 work)
  • Revision ID: jelmer@jelmer.uk-20181218205851-wsq5crtfn88zn2an
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
    def test_inventory_show_ids(self):
56
56
        expected = ''.join(('%-50s %s\n' % (path, file_id))
57
 
                                for path, file_id in
58
 
                                [('a', 'a-id'),
59
 
                                 ('b', 'b-id'),
60
 
                                 ('b/c', 'c-id')
61
 
                                ]
62
 
                          )
 
57
                           for path, file_id in
 
58
                           [('a', 'a-id'),
 
59
                            ('b', 'b-id'),
 
60
                            ('b/c', 'c-id')
 
61
                            ]
 
62
                           )
63
63
        self.assertInventoryEqual(expected, '--show-ids')
64
64
 
65
65
    def test_inventory_specific_files(self):
88
88
        # But passing '.' will only return paths underneath here
89
89
        self.assertInventoryEqual('b\nb/c\n', '.')
90
90
 
91
 
 
92
91
    def test_inventory_revision(self):
93
92
        self.build_tree(['b/d', 'e'])
94
93
        self.tree.add(['b/d', 'e'], [b'd-id', b'e-id'])