~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2007-07-04 08:08:13 UTC
  • mfrom: (2572 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2587.
  • Revision ID: robertc@robertcollins.net-20070704080813-wzebx0r88fvwj5rq
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
 
1
# Copyright (C) 2005, 2006 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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')