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