~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/EncodingAdapter.py

  • Committer: Aaron Bentley
  • Date: 2006-06-14 19:45:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1777.
  • Revision ID: abentley@panoramicfeedback.com-20060614194557-6b499aa1cf03f7e6
Use create_signature for signing policy, deprecate check_signatures for this

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006 by Canonical Ltd
2
2
# -*- coding: utf-8 -*-
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
25
25
# prefix for micro (1/1000000)
26
26
_mu = u'\xb5'
27
27
 
28
 
# greek letter omega, not to be confused with
29
 
# the Ohm sign, u'\u2126'. Though they are probably identical
30
 
# cp437 can handle the first, but not the second
31
 
_omega = u'\u03a9'
32
 
 
33
 
# smallest error possible, epsilon
34
 
# cp437 handles u03b5, but not u2208 the 'element of' operator
35
 
_epsilon = u'\u03b5'
36
 
 
37
28
# Swedish?
38
29
_erik = u'Erik B\xe5gfors'
39
30
 
48
39
 
49
40
# Russian, 'Alexander' in russian
50
41
_alexander = u'\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440'
51
 
# The word 'test' in Russian
52
 
_russian_test = u'\u0422\u0435\u0441\u0442'
 
42
# No idea if this means anything, but we need another string
 
43
_alex = u'\u0410\u043b\u0435\u043a'
53
44
 
54
45
# Kanji
55
46
# It is a kanji sequence for nihonjin, or Japanese in English.
109
100
                  , 'directory':_something}),
110
101
        ('cp1251', 0, {'committer':_alexander
111
102
                  , 'message':u'Testing ' + _mu
112
 
                  , 'filename':_russian_test
113
 
                  , 'directory':_russian_test + 'dir'}),
114
 
# The iso-8859-1 tests run on a default windows cp437 installation
115
 
# and it takes a long time to run an extra permutation of the tests
116
 
# But just in case we want to add this back in:
117
 
#        ('cp437', 0, {'committer':_erik
118
 
#                  , 'message':u'Testing ' + _mu
119
 
#                  , 'filename':'file_' + _omega
120
 
#                  , 'directory':_epsilon + '_dir'}),
 
103
                  , 'filename':_alex
 
104
                  , 'directory':_alex + 'dir'}),
121
105
    ]
122
106
 
123
107
    def adapt(self, test):