4
# Codec mapping tests for Japanese encodings
7
from test import support
8
from test import test_multibytecodec_support
11
class TestCP932Map(test_multibytecodec_support.TestBase_Mapping,
14
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \
23
for i in range(0xa1, 0xe0):
24
supmaps.append((bytes([i]), chr(i+0xfec0)))
27
class TestEUCJPCOMPATMap(test_multibytecodec_support.TestBase_Mapping,
30
mapfilename = 'EUC-JP.TXT'
31
mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-JP.TXT'
34
class TestSJISCOMPATMap(test_multibytecodec_support.TestBase_Mapping,
36
encoding = 'shift_jis'
37
mapfilename = 'SHIFTJIS.TXT'
38
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE' \
39
'/EASTASIA/JIS/SHIFTJIS.TXT'
49
class TestEUCJISX0213Map(test_multibytecodec_support.TestBase_Mapping,
51
encoding = 'euc_jisx0213'
52
mapfilename = 'EUC-JISX0213.TXT'
53
mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-JISX0213.TXT'
56
class TestSJISX0213Map(test_multibytecodec_support.TestBase_Mapping,
58
encoding = 'shift_jisx0213'
59
mapfilename = 'SHIFT_JISX0213.TXT'
60
mapfileurl = 'http://people.freebsd.org/~perky/i18n/SHIFT_JISX0213.TXT'
64
support.run_unittest(__name__)
66
if __name__ == "__main__":