~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_export.py

  • Committer: Martin Pool
  • Date: 2011-06-13 17:03:20 UTC
  • mto: This revision was merged to the branch mainline in revision 5996.
  • Revision ID: mbp@canonical.com-20110613170320-btdsj7fp63y3jb24
Further shrink export code

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
                pass
237
237
        finally:
238
238
            wt.unlock()
239
 
        self.assertEquals(["bar/a"], ball.getnames())
240
 
        ball.close()
 
239
        # Ball should now be closed.
 
240
        target.seek(0)
 
241
        ball2 = tarfile.open(None, "r", target)
 
242
        self.addCleanup(ball2.close)
 
243
        self.assertEquals(["bar/a"], ball2.getnames())
241
244
 
242
245
 
243
246
class ZipExporterTests(tests.TestCaseWithTransport):