Home
last modified time | relevance | path

Searched refs:b16decode (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_base64.py222 eq(base64.b16decode('0102ABCDEF'), '\x01\x02\xab\xcd\xef')
223 eq(base64.b16decode('00'), '\x00')
225 self.assertRaises(TypeError, base64.b16decode, '0102abcdef')
227 eq(base64.b16decode('0102abcdef', True), '\x01\x02\xab\xcd\xef')
229 eq(base64.b16decode(bytearray("0102ABCDEF")), '\x01\x02\xab\xcd\xef')
231 self.assertRaises(TypeError, base64.b16decode, '0102AG')
233 self.assertRaises(TypeError, base64.b16decode, '010')
Daudiotests.py17 return base64.b16decode(s.replace(' ', ''))
/external/python/cpython3/Lib/test/
Dtest_base64.py365 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)
[all …]
/external/python/cpython2/Lib/
Dbase64.py266 def b16decode(s, casefold=False): function
/external/python/cpython3/Lib/
Dbase64.py253 def b16decode(s, casefold=False): function
/external/python/cpython2/Doc/library/
Dbase64.rst112 .. function:: b16decode(s[, casefold])
/external/python/cpython3/Doc/library/
Dbase64.rst145 .. function:: b16decode(s, casefold=False)