~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_export.py

  • Committer: Andrew Bennetts
  • Date: 2011-05-09 02:33:16 UTC
  • mfrom: (5838 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5839.
  • Revision ID: andrew.bennetts@canonical.com-20110509023316-v1n4di9dh5lx5icj
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        self.assertPathExists('target/b')
68
68
        self.assertPathExists('target/b/c')
69
69
 
 
70
    def test_empty_subdir(self):
 
71
        self.build_tree(['source/', 'source/a', 'source/b/', 'source/b/c'])
 
72
        wt = self.make_branch_and_tree('source')
 
73
        wt.add(['a', 'b', 'b/c'])
 
74
        wt.commit('1')
 
75
        self.build_tree(['target/'])
 
76
        export.export(wt, 'target', format="dir", subdir='')
 
77
        self.assertPathExists('target/a')
 
78
        self.assertPathExists('target/b')
 
79
        self.assertPathExists('target/b/c')
 
80
 
70
81
    def test_to_existing_nonempty_dir_fail(self):
71
82
        self.build_tree(['source/', 'source/a', 'source/b/', 'source/b/c'])
72
83
        wt = self.make_branch_and_tree('source')