1# 2# test_codecmaps_tw.py 3# Codec mapping tests for ROC encodings 4# 5 6from test import test_support 7from test import test_multibytecodec_support 8import unittest 9 10class TestBIG5Map(test_multibytecodec_support.TestBase_Mapping, 11 unittest.TestCase): 12 encoding = 'big5' 13 mapfileurl = 'http://www.pythontest.net/unicode/BIG5.TXT' 14 15class TestCP950Map(test_multibytecodec_support.TestBase_Mapping, 16 unittest.TestCase): 17 encoding = 'cp950' 18 mapfileurl = 'http://www.pythontest.net/unicode/CP950.TXT' 19 pass_enctest = [ 20 ('\xa2\xcc', u'\u5341'), 21 ('\xa2\xce', u'\u5345'), 22 ] 23 24def test_main(): 25 test_support.run_unittest(__name__) 26 27if __name__ == "__main__": 28 test_main() 29