4 # Codec mapping tests for ROK encodings
7 from test
import test_support
8 from test
import test_multibytecodec_support
11 class TestCP949Map(test_multibytecodec_support
.TestBase_Mapping
,
14 mapfileurl
= 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT' \
18 class TestEUCKRMap(test_multibytecodec_support
.TestBase_Mapping
,
21 mapfileurl
= 'http://people.freebsd.org/~perky/i18n/EUC-KR.TXT'
23 # A4D4 HANGUL FILLER indicates the begin of 8-bytes make-up sequence.
24 pass_enctest
= [('\xa4\xd4', u
'\u3164')]
25 pass_dectest
= [('\xa4\xd4', u
'\u3164')]
28 class TestJOHABMap(test_multibytecodec_support
.TestBase_Mapping
,
31 mapfileurl
= 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/' \
33 # KS X 1001 standard assigned 0x5c as WON SIGN.
34 # but, in early 90s that is the only era used johab widely,
35 # the most softwares implements it as REVERSE SOLIDUS.
36 # So, we ignore the standard here.
37 pass_enctest
= [('\\', u
'\u20a9')]
38 pass_dectest
= [('\\', u
'\u20a9')]
41 test_support
.run_unittest(__name__
)
43 if __name__
== "__main__":