Home | History | Annotate | Download | only in test
      1 #
      2 # test_codecmaps_tw.py
      3 #   Codec mapping tests for ROC encodings
      4 #
      5 
      6 from test import test_support
      7 from test import multibytecodec_support
      8 import unittest
      9 
     10 class TestBIG5Map(multibytecodec_support.TestBase_Mapping,
     11                   unittest.TestCase):
     12     encoding = 'big5'
     13     mapfileurl = 'http://www.pythontest.net/unicode/BIG5.TXT'
     14 
     15 class TestCP950Map(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 
     24 def test_main():
     25     test_support.run_unittest(__name__)
     26 
     27 if __name__ == "__main__":
     28     test_main()
     29