test_codecmaps_cn.py 746 Bytes
Newer Older
1 2 3 4 5
#
# test_codecmaps_cn.py
#   Codec mapping tests for PRC encodings
#

6
from test import multibytecodec_support
7 8
import unittest

9
class TestGB2312Map(multibytecodec_support.TestBase_Mapping,
10 11
                   unittest.TestCase):
    encoding = 'gb2312'
12
    mapfileurl = 'http://www.pythontest.net/unicode/EUC-CN.TXT'
13

14
class TestGBKMap(multibytecodec_support.TestBase_Mapping,
15 16
                   unittest.TestCase):
    encoding = 'gbk'
17
    mapfileurl = 'http://www.pythontest.net/unicode/CP936.TXT'
18

19
class TestGB18030Map(multibytecodec_support.TestBase_Mapping,
20 21
                     unittest.TestCase):
    encoding = 'gb18030'
22
    mapfileurl = 'http://www.pythontest.net/unicode/gb-18030-2000.xml'
23 24


25
if __name__ == "__main__":
26
    unittest.main()