~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/EncodingAdapter.py

  • Committer: John Arbash Meinel
  • Date: 2006-01-13 07:05:33 UTC
  • mto: (1685.1.1 bzr-encoding)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060113070533-0342c358fb4e8416
Fix some of the tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
# Russian, 'Alexander' in russian
42
42
_alexander = u'\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440'
 
43
# No idea if this means anything, but we need another string
 
44
_alex = u'\u0410\u043b\u0435\u043a'
43
45
 
44
46
# Kanji
45
47
# It is a kanji sequence for nihonjin, or Japanese in English.
60
62
# the sentece to check whether one has properly set encoding.
61
63
_yellow_horse = (u'\u017dlu\u0165ou\u010dk\xfd k\u016f\u0148'
62
64
                 u' \xfap\u011bl \u010f\xe1belsk\xe9 k\xf3dy')
 
65
_yellow = u'\u017dlu\u0165ou\u010dk\xfd'
 
66
_someone = u'Some\u016f\u0148\u011b'
 
67
_something = u'\u0165ou\u010dk\xfd'
63
68
 
64
69
 
65
70
class EncodingTestAdapter(object):
86
91
                  , 'message':u'Testing ' + _mu
87
92
                  , 'filename':_juju_alt
88
93
                  , 'directory':_shrimp_sandwich}),
89
 
        ('iso-8859-2', 0, {'committer':'TODO-iso8859-2-committer'
 
94
        ('iso-8859-2', 0, {'committer':_someone
90
95
                  , 'message':_yellow_horse
91
 
                  , 'filename':'TODO-iso8859-2-filename'
92
 
                  , 'directory':'TODO-iso8859-2-dir'}),
 
96
                  , 'filename':_yellow
 
97
                  , 'directory':_something}),
93
98
        ('cp1251', 0, {'committer':_alexander
94
99
                  , 'message':u'Testing ' + _mu
95
 
                  , 'filename':'TODO-cp1251-filename'
96
 
                  , 'directory':'TODO-cp1251-dir'}),
 
100
                  , 'filename':_alex
 
101
                  , 'directory':_alex + 'dir'}),
97
102
    ]
98
103
 
99
104
    def adapt(self, test):