244
def test_export_from_outside_branch(self):
245
self.example_branch()
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')