Home | History | Annotate | Download | only in test

Lines Matching refs:altchars

149         eq(base64.b64encode(b'\xd3V\xbeo\xf7\x1d', altchars=b'*$'), b'01a*b$cd')
150 eq(base64.b64encode(b'\xd3V\xbeo\xf7\x1d', altchars=bytearray(b'*$')),
152 eq(base64.b64encode(b'\xd3V\xbeo\xf7\x1d', altchars=memoryview(b'*$')),
154 eq(base64.b64encode(b'\xd3V\xbeo\xf7\x1d', altchars=array('B', b'*$')),
159 self.assertRaises(TypeError, base64.b64encode, b"", altchars="*$")
210 for (data, altchars), res in tests_altchars.items():
212 altchars_str = altchars.decode('ascii')
214 eq(base64.b64decode(data, altchars=altchars), res)
215 eq(base64.b64decode(data_str, altchars=altchars), res)
216 eq(base64.b64decode(data, altchars=altchars_str), res)
217 eq(base64.b64decode(data_str, altchars=altchars_str), res)