• Home
  • Raw
  • Download

Lines Matching refs:assertEqual

37             self.assertEqual(b''.decode(enc), '')
38 self.assertEqual(str(b'', enc), '')
39 self.assertEqual(''.encode(enc), b'')
43 self.assertEqual('abcd'.encode(enc), b'abcd')
57 self.assertEqual(data.encode(enc, "test.ignore"), b'')
84 self.assertEqual(encoder.encode('\ud30c\uc774\uc36c \ub9c8\uc744'),
86 self.assertEqual(encoder.reset(), None)
87 self.assertEqual(encoder.encode('\u2606\u223c\u2606', True),
89 self.assertEqual(encoder.reset(), None)
90 self.assertEqual(encoder.encode('', True), b'')
91 self.assertEqual(encoder.encode('', False), b'')
92 self.assertEqual(encoder.reset(), None)
101 self.assertEqual(encoder.encode('\u00e6\u0300'), b'\xab\xc4')
102 self.assertEqual(encoder.encode('\u00e6'), b'')
103 self.assertEqual(encoder.encode('\u0300'), b'\xab\xc4')
104 self.assertEqual(encoder.encode('\u00e6', True), b'\xa9\xdc')
106 self.assertEqual(encoder.reset(), None)
107 self.assertEqual(encoder.encode('\u0300'), b'\xab\xdc')
109 self.assertEqual(encoder.encode('\u00e6'), b'')
110 self.assertEqual(encoder.encode('', True), b'\xa9\xdc')
111 self.assertEqual(encoder.encode('', True), b'')
115 self.assertEqual(encoder.encode('\u00e6'), b'')
117 self.assertEqual(encoder.encode('\u0300\u00e6'), b'\xab\xc4')
119 self.assertEqual(encoder.reset(), None)
120 self.assertEqual(encoder.encode('\u0300'), b'\xab\xdc')
121 self.assertEqual(encoder.encode('\u00e6'), b'')
123 self.assertEqual(encoder.encode('', True), b'\xa9\xdc')
130 self.assertEqual(encoder.encode('\u00e6\u0300'), b'\xab\xc4')
132 self.assertEqual(encoder.encode('\u00e6\u0300'), b'\xab\xc4')
134 self.assertEqual(encoder.encode('\u00e6'), b'')
136 self.assertEqual(encoder.encode('\u0300'), b'\xab\xc4')
138 self.assertEqual(encoder.encode('\u0300'), b'\xab\xc4')
144 self.assertEqual(encoder.encode('z'), b'z')
147 self.assertEqual(encoder.encode('\u3042'), b'\x1b\x24\x42\x24\x22')
149 self.assertEqual(encoder.encode('z'), b'\x1b\x28\x42z')
152 self.assertEqual(encoder.encode('\u3042'), b'\x24\x22')
155 self.assertEqual(encoder.encode('z'), b'z')
164 self.assertEqual(buffer_state_encoder.getstate(), 0)
166 self.assertEqual(buffer_state_encoder.getstate(),
173 self.assertEqual(buffer_state_encoder.getstate(), 0)
177 self.assertEqual(non_buffer_state_encoder.getstate(),
183 self.assertEqual(non_buffer_state_encoder.getstate(),
209 self.assertEqual(encoder.encode('\xff'), b'\\xff')
210 self.assertEqual(encoder.encode('\n'), b'\n')
228 self.assertEqual(res, 0)
235 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0\xcc\xbd'),
237 self.assertEqual(decoder.decode(b'\xe3 \xb8\xb6\xc0\xbb'),
239 self.assertEqual(decoder.decode(b''), '')
243 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0'), '\ud30c')
245 self.assertEqual(decoder.decode(b'\xcc'), '\uc774')
247 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0'), '\ud30c')
250 self.assertEqual(decoder.decode(b'\xcc'), '\uc774')
255 self.assertEqual(decoder.decode(ESC + b'('), '')
256 self.assertEqual(decoder.decode(b'B', True), '')
257 self.assertEqual(decoder.decode(ESC + b'$'), '')
258 self.assertEqual(decoder.decode(b'B@$'), '\u4e16')
259 self.assertEqual(decoder.decode(b'@$@'), '\u4e16')
260 self.assertEqual(decoder.decode(b'$', True), '\u4e16')
261 self.assertEqual(decoder.reset(), None)
262 self.assertEqual(decoder.decode(b'@$'), '@$')
263 self.assertEqual(decoder.decode(ESC + b'$'), '')
265 self.assertEqual(decoder.decode(b'B@$'), '\u4e16')
277 self.assertEqual(decoder.decode(b'\xa4\xa6'), '\u3046')
279 self.assertEqual(pending1, b'')
282 self.assertEqual(decoder.decode(b'\xa4'), '')
284 self.assertEqual(pending2, b'\xa4')
287 self.assertEqual(decoder.decode(b'\xa6'), '\u3046')
289 self.assertEqual(pending3, b'')
293 self.assertEqual(decoder.decode(b'\xa6'), '\u3046')
295 self.assertEqual(pending4, b'')
299 self.assertEqual(decoder.getstate(), (b'abc', 123456789))
329 self.assertEqual(s.getvalue(), b'123')
331 self.assertEqual(s.getvalue(), b'123\x907\x959')
333 self.assertEqual(s.getvalue(),
340 self.assertEqual(s.getvalue(), b'123')
342 self.assertEqual(s.getvalue(), b'123\xf0\x92\x8d\x85')
344 self.assertEqual(s.getvalue(),
352 self.assertEqual(s.getvalue(), b'abcd')
358 self.assertEqual(iso2022jp2.decode('iso2022-jp-2'), uni)
379 self.assertEqual(self.text.encode(self.encoding), self.expected_reset)
386 self.assertEqual(output, self.expected)
387 self.assertEqual(encoder.encode('', final=True), self.reset)
388 self.assertEqual(encoder.encode('', final=True), b'')
396 self.assertEqual(output, self.expected_reset)
397 self.assertEqual(encoder.encode('', final=True), b'')