Lines Matching +full:- +full:yq
32 eq(base64.encodebytes(b"a"), b"YQ==\n")
42 # Non-bytes
51 eq(base64.decodebytes(b"YQ==\n"), b"a")
61 # Non-bytes
79 # Non-binary files
90 # Non-binary files
127 padding = b"\x00" * ((4 - len(data)) % 4)
138 eq(base64.b64encode(b"a"), b"YQ==")
156 # Non-bytes
162 eq(base64.standard_b64encode(b"a"), b"YQ==")
172 # Non-bytes
177 eq(base64.urlsafe_b64encode(b'\xd3V\xbeo\xf7\x1d'), b'01a-b_cd')
178 # Non-bytes
180 b'\xd3V\xbeo\xf7\x1d', b'01a-b_cd')
188 b"YQ==": b"a",
203 # Non-bytes
223 # Non-bytes
228 tests_urlsafe = {b'01a-b_cd': b'\xd3V\xbeo\xf7\x1d',
234 # Non-bytes
235 self.check_other_types(base64.urlsafe_b64decode, b'01a-b_cd',
272 self.assertEqual(base64.urlsafe_b64decode(b'++--//__'), res)
283 # Non-bytes
300 # Non-bytes
365 # Non-bytes
382 # Non-bytes
392 # Non-alphabet characters
402 b"www.python.org": b'GB\\6`E-ZP=Df.1GEb>',
403 bytes(range(255)): b"""!!*-'"9eu7#RLhG$k3[W&.oNg'GVB"(`=52*$$"""
404 b"""(B+<_pR,UFcb-n-Vr/1iJ-0JP==1c70M3&s#]4?Ykm5X@_(6q'R884cE"""
408 b"""*^:jeCE.%f\\,!5gtgiEi8N\\UjQ5OekiqBum-X60nF?)@o_%qPq"ad`"""
413 b":Jand;cHat='/U/0JP==1c70M3&r-I,;<FN.OZ`-3]oSW/g+A(H[P",
417 b"Boundary:\0\0\0\0": b'6>q!aA79M(3WK-[!!',
422 b'\xff'*4: b's8W-!',
431 b'GB\\6`E-ZP=Df.1GEb>')
436 b'GB\\6`E-\nZP=Df.1\nGEb>')
438 b'zGB\\6`E\n-ZP=Df.\n1GEb>')
440 b'<~GB\\6`\nE-ZP=Df\n.1GEb>\n~>')
453 bytes(range(255)): b"""009C61O)~M2nh-c3=Iws5D^j+6crX17#SKH9337X"""
455 b"""OifNtP*GA-R8>}2SXo+ITwPvYU}0ioWMyV&XlZI|Y;A6DaB*^Tbai%j"""
462 b"""VPa!sWoBn+X=-b1ZEkOHadLBXb#`}nd3r%YLqtVJM@UIZOH55pPf$@("""
486 b'GB\\6`E-ZP=Df.1GEb>': b'www.python.org',
487 b"""! ! * -'"\n\t\t9eu\r\n7# RL\vhG$k3[W&.oNg'GVB"(`=52*$$"""
488 b"""(B+<_pR,UFcb-n-Vr/1iJ-0JP==1c70M3&s#]4?Ykm5X@_(6q'R884cE"""
492 b"""*^:jeCE.%f\\,!5gtgiEi8N\\UjQ5OekiqBum-X60nF?)@o_%qPq"ad`"""
495 b"""Hat='/U/0JP==1c70M3&r-I,;<FN.OZ`-3]oSW/g+A(H[P""":
501 b'6>q!aA79M(3WK-[!!': b"Boundary:\x00\x00\x00\x00",
506 b's8W-!': b'\xff'*4,
523 self.check_other_types(base64.a85decode, b'GB\\6`E-ZP=Df.1GEb>',
532 b"""009C61O)~M2nh-c3=Iws5D^j+6crX17#SKH9337X"""
534 b"""OifNtP*GA-R8>}2SXo+ITwPvYU}0ioWMyV&XlZI|Y;A6DaB*^Tbai%j"""
539 b"""VPa!sWoBn+X=-b1ZEkOHadLBXb#`}nd3r%YLqtVJM@UIZOH55pPf$@("""
592 illegal = (set(range(32)) | set(range(118, 256))) - set(b' \t\n\r\v')
623 self.assertRaises(ValueError, base64.a85decode, b's8W-', adobe=False)
624 self.assertRaises(ValueError, base64.a85decode, b's8W-"', adobe=False)
649 self.assertRaises(ValueError, f, 'with non-ascii \xcb')
661 return script_helper.assert_python_ok('-m', 'base64', *args).out
664 output = self.get_output('-t')
674 output = self.get_output('-e', support.TESTFN)
678 with script_helper.spawn_python('-m', 'base64', '-e') as proc:
686 output = self.get_output('-d', support.TESTFN)