3
# test_codecencodings_tw.py
4
# Codec encoding tests for ROC encodings.
7
from test import support
8
from test import test_multibytecodec_support
11
class Test_Big5(test_multibytecodec_support.TestBase, unittest.TestCase):
13
tstring = test_multibytecodec_support.load_teststring('big5')
16
(b"abc\x80\x80\xc1\xc4", "strict", None),
17
(b"abc\xc8", "strict", None),
18
(b"abc\x80\x80\xc1\xc4", "replace", "abc\ufffd\u8b10"),
19
(b"abc\x80\x80\xc1\xc4\xc8", "replace", "abc\ufffd\u8b10\ufffd"),
20
(b"abc\x80\x80\xc1\xc4", "ignore", "abc\u8b10"),
24
support.run_unittest(__name__)
26
if __name__ == "__main__":