Lines Matching refs:b16decode
372 eq(base64.b16decode(b'0102ABCDEF'), b'\x01\x02\xab\xcd\xef')
373 eq(base64.b16decode('0102ABCDEF'), b'\x01\x02\xab\xcd\xef')
374 eq(base64.b16decode(b'00'), b'\x00')
375 eq(base64.b16decode('00'), b'\x00')
377 self.assertRaises(binascii.Error, base64.b16decode, b'0102abcdef')
378 self.assertRaises(binascii.Error, base64.b16decode, '0102abcdef')
380 eq(base64.b16decode(b'0102abcdef', True), b'\x01\x02\xab\xcd\xef')
381 eq(base64.b16decode('0102abcdef', True), b'\x01\x02\xab\xcd\xef')
383 self.check_other_types(base64.b16decode, b"0102ABCDEF",
385 self.check_decode_type_errors(base64.b16decode)
386 eq(base64.b16decode(bytearray(b"0102abcdef"), True),
388 eq(base64.b16decode(memoryview(b"0102abcdef"), True),
390 eq(base64.b16decode(array('B', b"0102abcdef"), True),
393 self.assertRaises(binascii.Error, base64.b16decode, '0102AG')
395 self.assertRaises(binascii.Error, base64.b16decode, '010')
645 base64.b16decode,