~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_utextwrap.py

  • Committer: Martin
  • Date: 2011-05-21 16:29:38 UTC
  • mto: This revision was merged to the branch mainline in revision 5907.
  • Revision ID: gzlist@googlemail.com-20110521162938-1vrw3hp0197l3vrl
Add tests for non-ascii conflict serialisation

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Tests of the bzrlib.utextwrap."""
19
19
 
20
 
from bzrlib import (
21
 
    tests,
22
 
    utextwrap,
23
 
    )
24
 
from bzrlib.tests import features
25
 
 
 
20
from bzrlib import tests, utextwrap
 
21
from bzrlib.tests import TestSkipped
26
22
 
27
23
# Japanese "Good morning".
28
24
# Each character have double width. So total 8 width on console.
171
167
 
172
168
 
173
169
    def setup_both(testcase, base_class, reused_class):
174
 
 
175
 
        if (features.sphinx.available()):
176
 
            # Until https://bitbucket.org/birkenfeld/sphinx/issue/706 is fixed,
177
 
            # we can't run these tests when sphinx <= 1.0.1 as it breaks
178
 
            # textwrap.TextWrapper.wordsep_re
179
 
            version = tuple(map(int,
180
 
                                features.sphinx.module.__version__.split('.')))
181
 
            if version <= (1, 0, 7):
182
 
                raise tests.TestSkipped(
183
 
                    'sphinx textwrap monkeypatch breaks utextwrap')
184
170
        super(base_class, testcase).setUp()
185
171
        override_textwrap_symbols(testcase)
186
172
        reused_class.setUp(testcase)
208
194
    class TestWrap(tests.TestCase):
209
195
 
210
196
        def test_wrap(self):
211
 
            raise tests.TestSkipped("test.test_textwrap is not available.")
 
197
            raise TestSkipped("test.test_textwrap is not avialable.")
212
198
 
213
199
    class TestLongWord(tests.TestCase):
214
200
 
215
201
        def test_longword(self):
216
 
            raise tests.TestSkipped("test.test_textwrap is not available.")
 
202
            raise TestSkipped("test.test_textwrap is not avialable.")
217
203
 
218
204
    class TestIndent(tests.TestCase):
219
205
 
220
206
        def test_indent(self):
221
 
            raise tests.TestSkipped("test.test_textwrap is not available.")
 
207
            raise TestSkipped("test.test_textwrap is not avialable.")