Lines Matching full:decode
33 self.assertEqual(''.decode(enc), u'')
117 self.assertEqual(decoder.decode('\xc6\xc4\xc0\xcc\xbd'),
119 self.assertEqual(decoder.decode('\xe3 \xb8\xb6\xc0\xbb'),
121 self.assertEqual(decoder.decode(''), u'')
125 self.assertEqual(decoder.decode('\xc6\xc4\xc0'), u'\ud30c')
126 self.assertRaises(UnicodeDecodeError, decoder.decode, '', True)
127 self.assertEqual(decoder.decode('\xcc'), u'\uc774')
129 self.assertEqual(decoder.decode('\xc6\xc4\xc0'), u'\ud30c')
130 self.assertRaises(UnicodeDecodeError, decoder.decode, '\xcc\xbd', True)
131 self.assertEqual(decoder.decode('\xcc'), u'\uc774')
136 self.assertEqual(decoder.decode(ESC + '('), u'')
137 self.assertEqual(decoder.decode('B', True), u'')
138 self.assertEqual(decoder.decode(ESC + '$'), u'')
139 self.assertEqual(decoder.decode('B@$'), u'\u4e16')
140 self.assertEqual(decoder.decode('@$@'), u'\u4e16')
141 self.assertEqual(decoder.decode('$', True), u'\u4e16')
143 self.assertEqual(decoder.decode('@$'), u'@$')
144 self.assertEqual(decoder.decode(ESC + '$'), u'')
145 self.assertRaises(UnicodeDecodeError, decoder.decode, '', True)
146 self.assertEqual(decoder.decode('B@$'), u'\u4e16')
222 self.assertEqual(iso2022jp2.decode('iso2022-jp-2'), uni)