/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 bzrlib/tests/blackbox/test_export.py

  • Committer: v.ladeuil+lp at free
  • Date: 2006-11-08 07:44:30 UTC
  • mfrom: (2123 +trunk)
  • mto: (2145.1.1 keepalive)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: v.ladeuil+lp@free.fr-20061108074430-a9c08d4a475bd97f
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
        finally:
242
242
            zf.close()
243
243
 
 
244
    def test_export_from_outside_branch(self):
 
245
        self.example_branch()
 
246
 
 
247
        # Use directory exports to test stating the branch location
 
248
        self.run_bzr('export', 'latest', 'branch')
 
249
        self.assertEqual(['goodbye', 'hello'], sorted(os.listdir('latest')))
 
250
        self.check_file_contents('latest/goodbye', 'baz')
 
251
        self.run_bzr('export', 'first', '-r', '1', 'branch')
 
252
        self.assertEqual(['hello'], sorted(os.listdir('first')))
 
253
        self.check_file_contents('first/hello', 'foo')