Lines Matching refs:b16decode
365 eq(base64.b16decode(b'0102ABCDEF'), b'\x01\x02\xab\xcd\xef')
366 eq(base64.b16decode('0102ABCDEF'), b'\x01\x02\xab\xcd\xef')
367 eq(base64.b16decode(b'00'), b'\x00')
368 eq(base64.b16decode('00'), b'\x00')
370 self.assertRaises(binascii.Error, base64.b16decode, b'0102abcdef')
371 self.assertRaises(binascii.Error, base64.b16decode, '0102abcdef')
373 eq(base64.b16decode(b'0102abcdef', True), b'\x01\x02\xab\xcd\xef')
374 eq(base64.b16decode('0102abcdef', True), b'\x01\x02\xab\xcd\xef')
376 self.check_other_types(base64.b16decode, b"0102ABCDEF",
378 self.check_decode_type_errors(base64.b16decode)
379 eq(base64.b16decode(bytearray(b"0102abcdef"), True),
381 eq(base64.b16decode(memoryview(b"0102abcdef"), True),
383 eq(base64.b16decode(array('B', b"0102abcdef"), True),
386 self.assertRaises(binascii.Error, base64.b16decode, '0102AG')
388 self.assertRaises(binascii.Error, base64.b16decode, '010')
638 base64.b16decode,