~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2011-06-14 01:26:41 UTC
  • mto: (6034.2.1 integration)
  • mto: This revision was merged to the branch mainline in revision 6043.
  • Revision ID: mbp@canonical.com-20110614012641-dnb69zb57ae5je4w
Move all test features into bzrlib.tests.features

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    osutils,
33
33
    tests,
34
34
    )
35
 
from bzrlib.tests import TestCaseWithTransport
 
35
from bzrlib.tests import (
 
36
    features,
 
37
    TestCaseWithTransport,
 
38
    )
36
39
 
37
40
 
38
41
class TestExport(TestCaseWithTransport):
98
101
                         sorted(ball.getnames()))
99
102
 
100
103
    def test_tar_export_unicode_filename(self):
101
 
        self.requireFeature(tests.UnicodeFilenameFeature)
 
104
        self.requireFeature(features.UnicodeFilenameFeature)
102
105
        tree = self.make_branch_and_tree('tar')
103
106
        # FIXME: using fname = u'\xe5.txt' below triggers a bug revealed since
104
107
        # bzr.dev revno 4216 but more related to OSX/working trees/unicode than
116
119
 
117
120
    def test_tar_export_unicode_basedir(self):
118
121
        """Test for bug #413406"""
119
 
        self.requireFeature(tests.UnicodeFilenameFeature)
 
122
        self.requireFeature(features.UnicodeFilenameFeature)
120
123
        basedir = u'\N{euro sign}'
121
124
        os.mkdir(basedir)
122
125
        self.run_bzr(['init', basedir])
194
197
    # TODO: test_xz_export, I don't have pylzma working here to test it.
195
198
 
196
199
    def test_zip_export_unicode(self):
197
 
        self.requireFeature(tests.UnicodeFilenameFeature)
 
200
        self.requireFeature(features.UnicodeFilenameFeature)
198
201
        tree = self.make_branch_and_tree('zip')
199
202
        fname = u'\N{Euro Sign}.txt'
200
203
        self.build_tree(['zip/' + fname])