ยปCore Development>Code coverage>Lib/test/test_codecmaps_cn.py

Python code coverage for Lib/test/test_codecmaps_cn.py

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