• Home
  • Raw
  • Download

Lines Matching refs:adobe

418             eq(base64.a85encode(data, adobe=False), res, data)
419 eq(base64.a85encode(data, adobe=True), b'<~' + res + b'~>', data)
426 eq(base64.a85encode(b"www.python.org", wrapcol=7, adobe=False),
428 eq(base64.a85encode(b"\0\0\0\0www.python.org", wrapcol=7, adobe=False),
430 eq(base64.a85encode(b"www.python.org", wrapcol=7, adobe=True),
433 eq(base64.a85encode(b' '*8, foldspaces=True, adobe=False), b'yy')
434 eq(base64.a85encode(b' '*7, foldspaces=True, adobe=False), b'y+<Vd')
435 eq(base64.a85encode(b' '*6, foldspaces=True, adobe=False), b'y+<U')
436 eq(base64.a85encode(b' '*5, foldspaces=True, adobe=False), b'y+9')
502 eq(base64.a85decode(data, adobe=False), res, data)
503 eq(base64.a85decode(data.decode("ascii"), adobe=False), res, data)
504 eq(base64.a85decode(b'<~' + data + b'~>', adobe=True), res, data)
505 eq(base64.a85decode(data + b'~>', adobe=True), res, data)
506 eq(base64.a85decode('<~%s~>' % data.decode("ascii"), adobe=True),
509 eq(base64.a85decode(b'yy', foldspaces=True, adobe=False), b' '*8)
510 eq(base64.a85decode(b'y+<Vd', foldspaces=True, adobe=False), b' '*7)
511 eq(base64.a85decode(b'y+<U', foldspaces=True, adobe=False), b' '*6)
512 eq(base64.a85decode(b'y+9', foldspaces=True, adobe=False), b' '*5)
588 base64.a85decode(b'!!!!' + bytes([c]), adobe=False)
590 base64.a85decode(b'<~!!!!' + bytes([c]) + b'~>', adobe=True)
593 b"malformed", adobe=True)
595 b"<~still malformed", adobe=True)
601 b"<~~>", adobe=False)
602 base64.a85decode(b"<~~>", adobe=True) # sanity check
605 b"abcx", adobe=False)
607 b"abcdey", adobe=False)
609 b"a b\nc", adobe=False, ignorechars=b"")
611 self.assertRaises(ValueError, base64.a85decode, b's', adobe=False)
612 self.assertRaises(ValueError, base64.a85decode, b's8', adobe=False)
613 self.assertRaises(ValueError, base64.a85decode, b's8W', adobe=False)
614 self.assertRaises(ValueError, base64.a85decode, b's8W-', adobe=False)
615 self.assertRaises(ValueError, base64.a85decode, b's8W-"', adobe=False)