~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_export.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-08 06:22:11 UTC
  • mfrom: (4241.8.9 bzr.1.14)
  • Revision ID: pqm@pqm.ubuntu.com-20090408062211-qhu50uezgnlj7ked
(tanner) merge 1.14rc1 back into bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import os
18
18
 
19
 
from bzrlib.export import export
20
 
from bzrlib.tests import TestCaseWithTransport
21
 
 
22
 
 
23
 
class TestExport(TestCaseWithTransport):
 
19
 
 
20
from bzrlib import (
 
21
    export,
 
22
    tests,
 
23
    )
 
24
 
 
25
 
 
26
class TestExport(tests.TestCaseWithTransport):
24
27
 
25
28
    def test_dir_export_missing_file(self):
26
29
        self.build_tree(['a/', 'a/b', 'a/c'])
27
30
        wt = self.make_branch_and_tree('.')
28
31
        wt.add(['a', 'a/b', 'a/c'])
29
32
        os.unlink('a/c')
30
 
        export(wt, 'target', format="dir")
 
33
        export.export(wt, 'target', format="dir")
31
34
        self.failUnlessExists('target/a/b')
32
35
        self.failIfExists('target/a/c')
 
36