• Home
  • Raw
  • Download

Lines Matching refs:a85decode

573             eq(base64.a85decode(data), res, data)
574 eq(base64.a85decode(data, adobe=False), res, data)
575 eq(base64.a85decode(data.decode("ascii"), adobe=False), res, data)
576 eq(base64.a85decode(b'<~' + data + b'~>', adobe=True), res, data)
577 eq(base64.a85decode(data + b'~>', adobe=True), res, data)
578 eq(base64.a85decode('<~%s~>' % data.decode("ascii"), adobe=True),
581 eq(base64.a85decode(b'yy', foldspaces=True, adobe=False), b' '*8)
582 eq(base64.a85decode(b'y+<Vd', foldspaces=True, adobe=False), b' '*7)
583 eq(base64.a85decode(b'y+<U', foldspaces=True, adobe=False), b' '*6)
584 eq(base64.a85decode(b'y+9', foldspaces=True, adobe=False), b' '*5)
586 self.check_other_types(base64.a85decode, b'GB\\6`E-ZP=Df.1GEb>',
633 eq(base64.a85decode(b'GQ7^D'), b"x\x00\x00\x00")
634 eq(base64.a85decode(b"G^'2g"), b"xx\x00\x00")
635 eq(base64.a85decode(b'G^+H5'), b"xxx\x00")
636 eq(base64.a85decode(b'G^+IX'), b"xxxx")
637 eq(base64.a85decode(b'G^+IXGQ7^D'), b"xxxxx\x00\x00\x00")
658 base64.a85decode(b'!!!!' + bytes([c]))
660 base64.a85decode(b'!!!!' + bytes([c]), adobe=False)
662 base64.a85decode(b'<~!!!!' + bytes([c]) + b'~>', adobe=True)
664 self.assertRaises(ValueError, base64.a85decode,
666 self.assertRaises(ValueError, base64.a85decode,
670 self.assertRaises(ValueError, base64.a85decode,
672 self.assertRaises(ValueError, base64.a85decode,
674 base64.a85decode(b"<~~>", adobe=True) # sanity check
676 self.assertRaises(ValueError, base64.a85decode,
678 self.assertRaises(ValueError, base64.a85decode,
680 self.assertRaises(ValueError, base64.a85decode,
683 self.assertRaises(ValueError, base64.a85decode, b's', adobe=False)
684 self.assertRaises(ValueError, base64.a85decode, b's8', adobe=False)
685 self.assertRaises(ValueError, base64.a85decode, b's8W', adobe=False)
686 self.assertRaises(ValueError, base64.a85decode, b's8W-', adobe=False)
687 self.assertRaises(ValueError, base64.a85decode, b's8W-"', adobe=False)
710 base64.a85decode)