3 # test_codecencodings_tw.py
4 # Codec encoding tests for ROC encodings.
6 # $CJKCodecs: test_codecencodings_tw.py,v 1.1 2003/12/19 03:00:06 perky Exp $
8 from test
import test_support
9 from test
import test_multibytecodec_support
12 class Test_Big5(test_multibytecodec_support
.TestBase
, unittest
.TestCase
):
14 tstring
= test_multibytecodec_support
.load_teststring('big5')
17 ("abc\x80\x80\xc1\xc4", "strict", None),
18 ("abc\xc8", "strict", None),
19 ("abc\x80\x80\xc1\xc4", "replace", u
"abc\ufffd\u8b10"),
20 ("abc\x80\x80\xc1\xc4\xc8", "replace", u
"abc\ufffd\u8b10\ufffd"),
21 ("abc\x80\x80\xc1\xc4", "ignore", u
"abc\u8b10"),
25 suite
= unittest
.TestSuite()
26 suite
.addTest(unittest
.makeSuite(Test_Big5
))
27 test_support
.run_suite(suite
)
29 if __name__
== "__main__":