/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/per_tree/test_archive.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-20 15:54:36 UTC
  • mfrom: (6968.3.1 tree-archive)
  • mto: This revision was merged to the branch mainline in revision 6973.
  • Revision ID: jelmer@jelmer.uk-20180520155436-rza7dh1ehy95r0sd
Merge tree-archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        with open(output_path, 'wb') as f:
44
44
            f.writelines(tree_a.archive(output_path, format=self.format))
45
45
        names = self.get_export_names(output_path)
46
 
        self.assertIn('file', names)
47
 
        self.assertIn('dir', names)
 
46
        self.assertIn('output/file', names)
 
47
        self.assertIn('output/dir', names)
48
48
 
49
49
    def test_export_symlink(self):
50
50
        self.requireFeature(features.SymlinkFeature)
57
57
        with open(output_path, 'wb') as f:
58
58
            f.writelines(tree_a.archive(output_path, format=self.format))
59
59
        names = self.get_export_names(output_path)
60
 
        self.assertIn('link', names)
 
60
        self.assertIn('output/link', names)
61
61
 
62
62
    def get_output_names(self, path):
63
63
        raise NotImplementedError(self.get_output_names)
109
109
        with open(output_path, 'wb') as f:
110
110
            f.writelines(tree_a.archive(output_path, format=self.format))
111
111
        names = self.get_export_names(output_path)
112
 
        self.assertIn('link.lnk', names)
 
112
        self.assertIn('output/link.lnk', names)
113
113
 
114
114
 
115
115
class GenericArchiveTests(TestCaseWithTree):