~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/upstream_import.py

  • Committer: Aaron Bentley
  • Date: 2007-01-08 17:08:42 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070108170842-ei18carwxzr9709k
import now imports directories

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
    def test_copydir_nosub(self):
166
166
        def builder(fileobj, mode='w'):
167
167
            return DirFileWriter(fileobj, mode)
 
168
        # It would be bogus to test with the result in a subdirectory,
 
169
        # because for directories, the input root is always the output root.
168
170
        self.archive_test(builder, import_dir)
169
171
 
170
 
    def test_copydir_sub(self):
171
 
        def builder(fileobj, mode='w'):
172
 
            return DirFileWriter(fileobj, mode)
173
 
        self.archive_test(builder, import_dir, subdir=True)
174
 
 
175
172
    def archive_test(self, builder, importer, subdir=False):
176
173
        archive_file = self.make_archive(builder, subdir)
177
174
        tree = BzrDir.create_standalone_workingtree('tree')