~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-25 03:36:18 UTC
  • mfrom: (6034.2.4 test-feature-cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20110725033618-n5g9qg6iwyz2dqzw
(mbp) move test feature dependencies into test.features (Martin Pool)

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])