Lines Matching refs:a85encode
419 eq(base64.a85encode(data), res, data)
420 eq(base64.a85encode(data, adobe=False), res, data)
421 eq(base64.a85encode(data, adobe=True), b'<~' + res + b'~>', data)
423 self.check_other_types(base64.a85encode, b"www.python.org",
426 self.assertRaises(TypeError, base64.a85encode, "")
428 eq(base64.a85encode(b"www.python.org", wrapcol=7, adobe=False),
430 eq(base64.a85encode(b"\0\0\0\0www.python.org", wrapcol=7, adobe=False),
432 eq(base64.a85encode(b"www.python.org", wrapcol=7, adobe=True),
435 eq(base64.a85encode(b' '*8, foldspaces=True, adobe=False), b'yy')
436 eq(base64.a85encode(b' '*7, foldspaces=True, adobe=False), b'y+<Vd')
437 eq(base64.a85encode(b' '*6, foldspaces=True, adobe=False), b'y+<U')
438 eq(base64.a85encode(b' '*5, foldspaces=True, adobe=False), b'y+9')
557 eq(base64.a85encode(b"x", pad=True), b'GQ7^D')
558 eq(base64.a85encode(b"xx", pad=True), b"G^'2g")
559 eq(base64.a85encode(b"xxx", pad=True), b'G^+H5')
560 eq(base64.a85encode(b"xxxx", pad=True), b'G^+IX')
561 eq(base64.a85encode(b"xxxxx", pad=True), b'G^+IXGQ7^D')