Lines Matching refs:a85encode
426 eq(base64.a85encode(data), res, data)
427 eq(base64.a85encode(data, adobe=False), res, data)
428 eq(base64.a85encode(data, adobe=True), b'<~' + res + b'~>', data)
430 self.check_other_types(base64.a85encode, b"www.python.org",
433 self.assertRaises(TypeError, base64.a85encode, "")
435 eq(base64.a85encode(b"www.python.org", wrapcol=7, adobe=False),
437 eq(base64.a85encode(b"\0\0\0\0www.python.org", wrapcol=7, adobe=False),
439 eq(base64.a85encode(b"www.python.org", wrapcol=7, adobe=True),
442 eq(base64.a85encode(b' '*8, foldspaces=True, adobe=False), b'yy')
443 eq(base64.a85encode(b' '*7, foldspaces=True, adobe=False), b'y+<Vd')
444 eq(base64.a85encode(b' '*6, foldspaces=True, adobe=False), b'y+<U')
445 eq(base64.a85encode(b' '*5, foldspaces=True, adobe=False), b'y+9')
564 eq(base64.a85encode(b"x", pad=True), b'GQ7^D')
565 eq(base64.a85encode(b"xx", pad=True), b"G^'2g")
566 eq(base64.a85encode(b"xxx", pad=True), b'G^+H5')
567 eq(base64.a85encode(b"xxxx", pad=True), b'G^+IX')
568 eq(base64.a85encode(b"xxxxx", pad=True), b'G^+IXGQ7^D')