1# 2# test_codecmaps_cn.py 3# Codec mapping tests for PRC encodings 4# 5 6from test import multibytecodec_support 7import unittest 8 9class TestGB2312Map(multibytecodec_support.TestBase_Mapping, 10 unittest.TestCase): 11 encoding = 'gb2312' 12 mapfileurl = 'http://www.pythontest.net/unicode/EUC-CN.TXT' 13 14class TestGBKMap(multibytecodec_support.TestBase_Mapping, 15 unittest.TestCase): 16 encoding = 'gbk' 17 mapfileurl = 'http://www.pythontest.net/unicode/CP936.TXT' 18 19class TestGB18030Map(multibytecodec_support.TestBase_Mapping, 20 unittest.TestCase): 21 encoding = 'gb18030' 22 mapfileurl = 'http://www.pythontest.net/unicode/gb-18030-2000.xml' 23 24 25if __name__ == "__main__": 26 unittest.main() 27