Home | History | Annotate | Download | only in test

Lines Matching refs:bytearray

23         eq(base64.encodestring(bytearray('abc')), 'YWJj\n')
39 eq(base64.decodestring(bytearray("YWJj\n")), "abc")
83 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==')
85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$'))
99 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==')
103 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd')
122 eq(base64.b64decode(bytearray("YWJj")), "abc")
136 eq(base64.standard_b64decode(bytearray("YWJj")), "abc")
140 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d')
155 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA=')
167 self.assertRaises(TypeError, base64.b32decode, bytearray('MFRGG==='))
199 eq(base64.b16encode(bytearray('\x01\x02\xab\xcd\xef')), '0102ABCDEF')
210 eq(base64.b16decode(bytearray("0102ABCDEF")), '\x01\x02\xab\xcd\xef')