]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_codecmaps_tw.py
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / test_codecmaps_tw.py
CommitLineData
4710c53d 1#!/usr/bin/env python\r
2#\r
3# test_codecmaps_tw.py\r
4# Codec mapping tests for ROC encodings\r
5#\r
6\r
7from test import test_support\r
8from test import test_multibytecodec_support\r
9import unittest\r
10\r
11class TestBIG5Map(test_multibytecodec_support.TestBase_Mapping,\r
12 unittest.TestCase):\r
13 encoding = 'big5'\r
14 mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE/' \\r
15 'EASTASIA/OTHER/BIG5.TXT'\r
16\r
17class TestCP950Map(test_multibytecodec_support.TestBase_Mapping,\r
18 unittest.TestCase):\r
19 encoding = 'cp950'\r
20 mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \\r
21 'WINDOWS/CP950.TXT'\r
22 pass_enctest = [\r
23 ('\xa2\xcc', u'\u5341'),\r
24 ('\xa2\xce', u'\u5345'),\r
25 ]\r
26\r
27def test_main():\r
28 test_support.run_unittest(__name__)\r
29\r
30if __name__ == "__main__":\r
31 test_main()\r