+++ /dev/null
-#!/usr/bin/env python\r
-#\r
-# test_codecencodings_hk.py\r
-# Codec encoding tests for HongKong encodings.\r
-#\r
-\r
-from test import test_support\r
-from test import test_multibytecodec_support\r
-import unittest\r
-\r
-class Test_Big5HKSCS(test_multibytecodec_support.TestBase, unittest.TestCase):\r
- encoding = 'big5hkscs'\r
- tstring = test_multibytecodec_support.load_teststring('big5hkscs')\r
- codectests = (\r
- # invalid bytes\r
- ("abc\x80\x80\xc1\xc4", "strict", None),\r
- ("abc\xc8", "strict", None),\r
- ("abc\x80\x80\xc1\xc4", "replace", u"abc\ufffd\u8b10"),\r
- ("abc\x80\x80\xc1\xc4\xc8", "replace", u"abc\ufffd\u8b10\ufffd"),\r
- ("abc\x80\x80\xc1\xc4", "ignore", u"abc\u8b10"),\r
- )\r
-\r
-def test_main():\r
- test_support.run_unittest(__name__)\r
-\r
-if __name__ == "__main__":\r
- test_main()\r