Lines Matching refs:bytearray
22 eq(base64.encodestring(bytearray('abc')), 'YWJj\n')
38 eq(base64.decodestring(bytearray("YWJj\n")), "abc")
81 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==')
83 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$'))
97 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==')
101 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd')
120 eq(base64.b64decode(bytearray("YWJj")), "abc")
134 eq(base64.standard_b64decode(bytearray("YWJj")), "abc")
138 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d')
174 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA=')
186 self.assertRaises(TypeError, base64.b32decode, bytearray('MFRGG==='))
218 eq(base64.b16encode(bytearray('\x01\x02\xab\xcd\xef')), '0102ABCDEF')
229 eq(base64.b16decode(bytearray("0102ABCDEF")), '\x01\x02\xab\xcd\xef')