~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_export.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-06-07 17:21:50 UTC
  • mfrom: (5957.3.3 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20110607172150-b8tdisesgnjxk7ku
(vila) Exporting may now be done with a generator (Geoff)

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
    def run_tar_export_disk_and_stdout(self, extension, tarfile_flags):
175
175
        tree = self.make_basic_tree()
176
176
        fname = 'test.%s' % (extension,)
 
177
        self.run_bzr('export -d tree %s' % (fname,))
177
178
        mode = 'r|%s' % (tarfile_flags,)
178
 
        self.run_bzr('export -d tree %s' % (fname,))
179
179
        ball = tarfile.open(fname, mode=mode)
180
180
        self.assertTarANameAndContent(ball, root='test/')
181
181
        content = self.run_bzr('export -d tree --format=%s -' % (extension,))[0]