/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

Merge cleanup into texinfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    export,
31
31
    tests,
32
32
    )
33
 
from bzrlib.tests.blackbox import ExternalBase
34
 
 
35
 
 
36
 
class TestExport(ExternalBase):
 
33
from bzrlib.tests import TestCaseWithTransport
 
34
 
 
35
 
 
36
class TestExport(TestCaseWithTransport):
37
37
 
38
38
    def test_tar_export(self):
39
39
        tree = self.make_branch_and_tree('tar')
313
313
        har_st = os.stat('t/har')
314
314
        self.assertEquals(315532800, har_st.st_mtime)
315
315
 
 
316
    def test_export_directory(self):
 
317
        """Test --directory option"""
 
318
        self.example_branch()
 
319
        self.run_bzr(['export', '--directory=branch', 'latest'])
 
320
        self.assertEqual(['goodbye', 'hello'], sorted(os.listdir('latest')))
 
321
        self.check_file_contents('latest/goodbye', 'baz')