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

Python code coverage for Lib/test/test_codecmaps_tw.py

#countcontent
1n/a#
2n/a# test_codecmaps_tw.py
3n/a# Codec mapping tests for ROC encodings
4n/a#
5n/a
6n/afrom test import multibytecodec_support
7n/aimport unittest
8n/a
9n/aclass TestBIG5Map(multibytecodec_support.TestBase_Mapping,
10n/a unittest.TestCase):
11n/a encoding = 'big5'
12n/a mapfileurl = 'http://www.pythontest.net/unicode/BIG5.TXT'
13n/a
14n/aclass TestCP950Map(multibytecodec_support.TestBase_Mapping,
15n/a unittest.TestCase):
16n/a encoding = 'cp950'
17n/a mapfileurl = 'http://www.pythontest.net/unicode/CP950.TXT'
18n/a pass_enctest = [
19n/a (b'\xa2\xcc', '\u5341'),
20n/a (b'\xa2\xce', '\u5345'),
21n/a ]
22n/a codectests = (
23n/a (b"\xFFxy", "replace", "\ufffdxy"),
24n/a )
25n/a
26n/aif __name__ == "__main__":
27n/a unittest.main()