+
    BiX                     D   ^ RI t ^ RIt^ RIt^ RIt^ RIHtHtHt ^ RIH	t	 . ROt
. ROt]]
,           RR.,           t ! R R] P                  4      t ! R R	]4      t ! R
 R]4      t ! R R]4      t ! R R] P                  4      t]R8X  d   ] P(                  ! 4        R# R# )    N)
bigmemtest_1G_4G)
hypothesiscrc32crc_hqxc                   b  a  ] tR t^t o ]tRt]]! ]! R4      4      ,          t]R,          tR tR t	R t
R tR tR	 tR
 tR tR tR t]P&                  ! ]P(                  P+                  ^-R7      ]P(                  P-                  4       R7      R 4       tR tR tR t]P&                  ! ]P(                  P+                  4       R7      R 4       tR tR t]P&                  ! ]P(                  P+                  4       ]P(                  P-                  4       ]P(                  P-                  4       ]P(                  P-                  4       R7      R 4       tR tR t R t!R t"]P&                  ! ]P(                  P+                  4       ]P(                  P-                  4       R7      R 4       t#R  t$R!t%V t&R"# )#BinASCIITests.   The quick brown fox jumps over the lazy dog.
   s   
Hello world.
c                F    V P                  V P                  4      V n        R # N)	type2testrawdatadataselfs   &)/usr/lib/python3.14/test/test_binascii.pysetUpBinASCIITest.setUp   s    NN4<<0	    c                   V P                  V\        4       V P                  V\        4       V P                  V\        4       V'       d   V P                  \        V4      ^4       V P	                  WRV P
                  : RV: 2R7       R# )   zself.type2test=z kwargs=)msgN)assertIsInstancebytes
assertLessmaxassertEqualr   )r   original	convertedrestoredkwargss   &&&&,r   assertConversionBinASCIITest.assertConversion   sl    h.i/h.OOC	NC0ODNN3DIfY1OPr   c                    V P                  \        P                  \        4       V P                  \        P                  \        4       R # r   )assertIsSubclassbinasciiError	Exception
Incompleter   s   &r   test_exceptionsBinASCIITest.test_exceptions'   s,    hnni8h119=r   c                    \          FG  pV P                  \        \        V4      R 4       V P	                  \
        \        \        V4      4       KI  	  R# )__call__N)all_functionsassertHasAttrgetattrr'   assertRaises	TypeError)r   names   & r   test_functionsBinASCIITest.test_functions,   s:    !Dwx6
Ci4)@A "r   c                   ^-pV P                   RV p\        \        \        4       F  w  r4\	        \
        V4      p\	        \
        V4      p V! V P                  V4      4      pV! V P                  V4      4      pV P                  XVRP                  WCW4      4       V P                  VXV4       K  	  V P                  \
        P                  ! V^ 4      \        4       V P                  \
        P                  ! V4      \        4       R#   \         d,   p	T P                  RP                  YCT	4      4        Rp	?	LRp	?	ii ; i)-   N{}/{} conversion raises {!r}{}/{} conversion: {!r} != {!r})r   zipa2b_functionsb2a_functionsr1   r'   r   r)   failformatr   r#   r   r   intr   )
r   MAX_ALLrawfafba2bb2aareserrs
   &         r   test_returned_value BinASCIITest.test_returned_value2   s   ll8G$-7FB(B'C(B'CNs+,$..+, S# (,,2F23,DF!!#q#. 8 	h..sA6<hnnS137  N		8??LMMNs   .DE!D<<Ec                   ^9p. p\        ^ \        V P                  4      V4       FN  pV P                  V P                  W3V,            4      p\        P
                  ! V4      pVP                  V4       KP  	  \        4       pV F2  pV P                  V4      p\        P                  ! V4      pWd,          pK4  	  V P                  W`P                  4       R# )9   N)
rangelenr   r   r'   
b2a_base64appendr   
a2b_base64r   )r   
MAX_BASE64linesibrG   rH   lines   &       r   test_base64validBinASCIITest.test_base64validD   s    
q#dll+Z8At||A
l;<A##A&ALLO 9 gDt$A##A&AHC  	ll+r   c                  a
 ^9p. p\        ^ \        V P                  4      V4       FN  pV P                  V P                  W3V,            4      p\
        P                  ! V4      pVP                  V4       KP  	  \        4       o
Rp\        R4       F  pW69  g   K  S
P                  V4       K  	  V
3R lp\        4       p\        Wr4       F2  p	V P                  V	4      p\
        P                  ! V4      pW,          pK4  	  V P                  WP                  4       V P                  \
        P                  ! V P                  S
4      4      R4       R# )rM   s@   abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/r   c                 <  < Sp\        V 4      \        V4      ,          p\        4       pV '       d_   V'       dW   \        V 4      \        V4      ,          V8  d   V ^ ,          V R,          rMV^ ,          VR,          rVP                  V4       Kf  W1,           V ,           # )r   :   NN)rO   	bytearrayrQ   )rW   noiseratiorH   cfillerss   &    r   addnoise1BinASCIITest.test_base64invalid.<locals>.addnoiseb   sq    EIU+E+C5t9E
*U2"1gtBxt$Qxru

1;%%r   r   N)rN   rO   r   r   r   r'   rP   rQ   r]   maprR   r   )r   rS   rT   rU   rV   rG   validrb   rH   rW   ra   s   &         @r   test_base64invalidBinASCIITest.test_base64invalidS   s	    
q#dii.*5At||A
l;<A##A&ALLO 6
 +SsA~q! 
	& k(Dt$A##A&AHC ) 	ll+ 	,,T^^G-DEsKr   c                \  a a R  V 3R lloR V3R llpR V3R llpR V3R llpR V3R	 llpR
 V3R llpV! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! R R4       V! R!R4       V! R"R4       V! R#R4       V! R$R%4       V! R&R'4       V! R(R'4       V! R)R'4       V! R*R'4       V! R+R'4       R,# )-c                <    V ^8  d   QhR\         R\        R\        /# )   assert_regexr   non_strict_mode_expected_result)strr   )r?   s   "r   __annotate__:BinASCIITest.test_base64_strict_mode.<locals>.__annotate__z   s"     	> 	>s 	>% 	>bg 	>r   c                   < SP                  \        P                  V 4      ;_uu_ 4        \        P                  ! SP	                  V4      R R7       RRR4       SP                  \        P                  ! SP	                  V4      RR7      V4       SP                  \        P                  ! SP	                  V4      4      V4       R#   + '       g   i     L~; i)T)strict_modeNF)assertRaisesRegexr'   r(   rR   r   r   )rk   r   rl   r   s   &&&r   _assertRegexTemplateBBinASCIITest.test_base64_strict_mode.<locals>._assertRegexTemplatez   s    ''EE##DNN4$8dK FX001ESXY<>X001EF<>	 FEs   (CC	c                $    V ^8  d   QhR\         /# rj   rl   r   )r?   s   "r   rn   ro      s     	\ 	\E 	\r   c                    < S! R W4       R# )z(?i)Excess dataN r   rl   rs   s   &&r   assertExcessData>BinASCIITest.test_base64_strict_mode.<locals>.assertExcessData   s     !3T[r   c                $    V ^8  d   QhR\         /# rv   rw   )r?   s   "r   rn   ro      s     	a 	au 	ar   c                    < S! R W4       R# )z(?i)Only base64 dataNry   rz   s   &&r   assertNonBase64DataABinASCIITest.test_base64_strict_mode.<locals>.assertNonBase64Data   s     !8$`r   c                $    V ^8  d   QhR\         /# rv   rw   )r?   s   "r   rn   ro      s     	` 	` 	`r   c                    < S! R W4       R# )z(?i)Leading paddingNry   rz   s   &&r   assertLeadingPaddingBBinASCIITest.test_base64_strict_mode.<locals>.assertLeadingPadding   s     !7_r   c                $    V ^8  d   QhR\         /# rv   rw   )r?   s   "r   rn   ro      s     	f 	fe 	fr   c                    < S! R W4       R# )z(?i)Discontinuous paddingNry   rz   s   &&r   assertDiscontinuousPaddingHBinASCIITest.test_base64_strict_mode.<locals>.assertDiscontinuousPadding   s     !=ter   c                $    V ^8  d   QhR\         /# rv   rw   )r?   s   "r   rn   ro      s     	_ 	_u 	_r   c                    < S! R W4       R# )z(?i)Excess paddingNry   rz   s   &&r   assertExcessPaddingABinASCIITest.test_base64_strict_mode.<locals>.assertExcessPadding   s     !6^r   s   ab==a   is   ab===s   ab====s   ab==:s   abc=as   is   abc=:s   ab==
s   abc==s   abc===s   abc====s   abc=====s   
ab==s   ab:(){:|:&};:==s   a
b==s   a b==   =r      ==s   ===s   ====s   =====s   ab=c=s   ab=ab==s   is   abcd=s   is   abcd==s   abcd===s   abcd====s	   abcd=====Nry   )r   r{   r   r   r   r   rs   s   f     @r   test_base64_strict_mode$BinASCIITest.test_base64_strict_modex   s^   	> 	>	\ 	\	a 	a	` 	`	f 	f	_ 	_ 	4(4(D)4(8,8,D)8,H-X.h/ 	It,.5It,K. 	T3'UC(VS)Wc*Xs+"8X6":|<Hl3I|4J5K6L,7r   c                  a  V 3R  lpV! R4       V! R4       V! R4       V! R4       V! R4       V! R4       V! R4       V! R4       V 3R	 lpV! R
4       V! R4       V! R4       V! R4       V! R4       V! R4       V! R4       R# )c                    < SP                  \        P                  R 4      ;_uu_ 4        \        P                  ! SP	                  V 4      4       RRR4       R#   + '       g   i     R# ; i)z(?i)Incorrect paddingN)rr   r'   r(   rR   r   )r   r   s   &r   assertIncorrectPadding>BinASCIITest.test_base64errors.<locals>.assertIncorrectPadding   sB    ''8PQQ##DNN4$89 RQQQs   &AA+	s   abs   ab=s   abcs   abcdefs   abcdef=s   abcdefgs   a=b=s   a
b=c                 B  < \        \        P                  ! R RV 4      4      pR\        V4      ,           pSP	                  \
        P                  V4      ;_uu_ 4        \
        P                  ! SP                  V 4      4       RRR4       R#   + '       g   i     R# ; i)s   [^A-Za-z0-9/+]r   z((?i)Invalid.+number of data characters.+N)	rO   resubrm   rr   r'   r(   rR   r   )r   n_data_charsexpected_errmsg_rer   s   &  r   assertInvalidLength;BinASCIITest.test_base64errors.<locals>.assertInvalidLength   sl    rvv&8$EFL;c,>OO ''8JKK##DNN4$89 LKKKs   &BB	   as   a=s   a==s   a===s
   A	B
C ??DENs   aaaaas]  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaary   )r   r   r   s   f  r   test_base64errorsBinASCIITest.test_base64errors   s    	: 	u%v&v&y)z*z*w'x(	: 	D!E"F#G$H%/0O,r   c                   ^-pR F  p. p\        ^ \        V P                  4      V4       FO  pV P                  V P                  WDV,            4      p\
        P                  ! WRR7      pVP                  V4       KQ  	  \        4       pV F2  pV P                  V4      p\
        P                  ! V4      pWu,          pK4  	  V P                  WpP                  4       K  	  V P                  \
        P                  ! R4      R4       V P                  \
        P                  ! R4      R4       V P                  \
        P                  ! R4      R4       V P                  \
        P                  \
        P                  R4       V P                  \
        P                  \
        P                  R4       V P                  \
        P                  \
        P                  R4       V P                  \
        P                  ! R4      R	4       V P                  \
        P                  ! R
4      R4       V P                  \
        P                  ! R
RR7      R4       V P                  \
        P                  ! R4      R
4       V P                  \
        P                  ! R4      R
4       V P                  \
        P                  ! R4      R4       V P                  \
        P                  ! RRR7      R4       V P                  \
        P                  ! R4      \
        P                  ! R4      4       V P                  \        4      ;_uu_ 4        \
        P                  ! R
R4       RRR4       R#   + '       g   i     R# ; i)r8   Tbacktick         s    s   !!!!   xs   !>   
r   s    
s   `
s    Cats
   $ $-A=   
s
   $`$-A=```
N)TFs                                  s                                    s.   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!)rN   rO   r   r   r   r'   b2a_uurQ   r   a2b_uur   r2   r(   r3   )	r   MAX_UUr   rT   rU   rV   rG   rH   rW   s	   &        r   test_uuBinASCIITest.test_uu   sU   %HE1c$))nf5NN4<<F(#;<OOA9Q 6 'CNN4(OOA&  S,,/ & 	1:>1:>1:>(..(//;G(..(//7C(..(//7C 	.
;-v6t<fE0#60#64nEdC'	)8!8	:y))OOC& *)))s   M$$M5	)max_size)binaryr   c                    \         P                  ! V P                  V4      VR 7      p\         P                  ! V P                  V4      4      pV P	                  WWBR 7       R# )r   N)r'   r   r   r   r#   )r   r   r   r    r!   s   &&&  r   test_b2a_roundtripBinASCIITest.test_b2a_roundtrip   sG    
 OODNN6$:XN	??4>>)#<=fMr   c                   \         P                  ! V P                  R 4      ^ 4      p\         P                  ! V P                  R4      V4      pV P                  VR4       V P	                  \
        \         P                  4       V P	                  \
        \         P                  V P                  R4      4       R F@  pV P                  \         P                  ! V P                  R4      V4      VR,          4       KB  	  R# )   Test the CRC-32 of    this string.i7  r   i  N)r   r\   i4  iE# ixV4)r'   r   r   r   r2   r3   r   crcs   & r   test_crc_hqxBinASCIITest.test_crc_hqx   s    t~~.CDaHt~~.>?Ee$)X%5%56)X%5%5t~~c7JK8CX--dnnS.A3G 6\+ 9r   c                   \         P                  ! V P                  R 4      4      p\         P                  ! V P                  R4      V4      pV P                  VR4       V P	                  \
        \         P                  4       R# )r   r   ij]N)r'   r   r   r   r2   r3   r   s   & r   
test_crc32BinASCIITest.test_crc32  sX    nnT^^,ABCnnT^^,<=sCj))X^^4r   c                V   R p\         P                  ! V P                  V4      4      p\         P                  ! V P                  V4      4      pV P	                  W4       V P                  \         P                  \         P                  VRR 4       V P                  \         P                  \         P                  VRR R,           4       V P                  \         P                  \         P                  \        ^^.4      4       V P                  \         P                  \         P                  R4       V P                  \         P                  \         P                  R4       V P                  \         P                  \         P                  R4       V P                  \         P                  \         P                  R4       V P	                  \         P                  ! V P                  V4      4      V4       V P	                  \         P                  ! V P                  V4      4      V4       R# )    {s   worldi   s   helloi   0N   qs   0Gs   0gs   G0s   g0r   )
r'   b2a_hexr   a2b_hexr   r2   r(   r   hexlify	unhexlify)r   stus   &   r   test_hexBinASCIITest.test_hex  sn   _T^^A./T^^A./(..(*:*:AcrFC(..(*:*:AcrFTMJ(..(*:*:E3*<MN(..(*:*:EB(..(*:*:EB(..(*:*:EB(..(*:*:EB 	))$..*;<a@++DNN1,=>Br   )r   c                    \         P                  ! V P                  V4      4      p\         P                  ! V P                  V4      4      pV P	                  WV4       R # r   )r'   r   r   r   r#   )r   r   r    r!   s   &&  r   test_hex_roundtripBinASCIITest.test_hex_roundtrip%  sD    $$T^^F%;<	%%dnnY&?@f:r   c                
   R pV P                  \        P                  ! V P                  V4      4      VP	                  4       P                  R4      4       VP	                  R^4      P                  R4      pV P                  \        P                  ! V P                  V4      R^4      V4       VP	                  R4      P                  R4      pV P                  \        P                  ! V P                  V4      R4      V4       R# )r   ascii.:N)r   r'   r   r   hexencoder   )r   r   	expected8	expected1s   &   r   test_hex_separatorBinASCIITest.test_hex_separator+  s    
 `))$..*;<aeegnnW>UVEE#qM((1	))$..*;S!DiPEE#J%%g.	))$..*;SA9Mr   c                    V P                   p\        P                  p\        P                  pV! R RR7        V! RQ/ ^^/B  V P	                  R4       V P                  V! V! R4      4      R 4       V P                  V! V! R4      4      R4       V P                  V! V! R4      4      R4       V P                  V! V! R4      4      R4       V P                  V! V! R	4      4      R4       V P                  V! V! R
4      4      R 4       V P                  V! V! R4      4      R4       V P                  V! V! R4      4      R4       V P                  V! V! R4      4      R4       V P                  V! V! R4      4      R4       V P                  V! V! R4      4      R4       V P                  V! V! R4      RRR 4      R4       V P                  V! V! R4      4      R4       V P                  V! V! R4      RR7      R4       V P                  \
        VRR7       V P                  V! V! R4      4      R4       V P                  V! V! R4      4      R4       V P                  V! V! RS4      4      RT4       V P                  V! V! R4      4      R4       V P                  V! V! R4      4      R 4       V P                  V! V! R4      4      R4       V P                  V! V! R4      RR7      R!4       V P                  V! V! R"4      RR7      R#4       V P                  V! V! R$4      RR7      R%4       V P                  V! V! R"4      RRR&7      R'4       V P                  V! V! R(4      RR7      R(4       V P                  V! V! R4      4      R)4       V P                  V! V! R*4      4      R+4       V P                  V! V! R,4      4      R,4       V P                  V! V! R-4      4      R-4       V P                  V! V! R,4      RRR 4      R)4       V P                  V! V! R-4      RRR 4      R+4       V P                  V! V! R.4      4      R/4       V P                  V! V! R04      4      R14       V P                  V! V! R04      RR27      R14       V P                  V! V! R34      4      R34       V P                  V! V! R34      RR27      R44       V P                  V! V! R34      RR57      R34       V P                  V! V! R64      4      R74       V P                  V! V! R64      RR27      R74       V P                  V! V! R64      RR57      R84       V P                  V! V! R94      4      R94       V P                  V! V! R94      RR27      R:4       V P                  V! V! R94      RR57      R;4       V P                  V! V! R<4      4      R=4       V P                  V! V! R<4      RR27      R=4       V P                  V! V! R<4      RR57      R>4       V P                  V! V! R?4      RRR 4      R@4       V P                  V! V! RA4      RRR 4      RB4       V P                  V! V! R?4      RRR RR27      RC4       V P                  V! V! RA4      RRR RR27      RD4       V P                  V! V! R?4      RRR RR57      RE4       V P                  V! V! RA4      RRR RR57      RF4       V P                  V! V! RG4      4      RH4       V P                  V! V! RI4      4      RJ4       V P                  V! V! RK4      4      RL4       V P                  V! V! RM4      4      RN4       V P                  V! V! RO4      4      RO4       V P                  V! V! RP4      RRR 4      RH4       R#   \
         d     EL9i ; i)Ur   F)r   headerz/binascii.a2b_qp(**{1:1}) didn't raise TypeErrorr   s   = r   s   =
ABs   ABs   =
ABs   =ABs   =AB
CDs   CDs   =AB   s   =abs   =AXs   =XANs   =A   _Tr       bar)foos   =00
=00s    
 s   

s   =FF
=FF
=FFr   s   =7Fs   =3Ds   =5Fs   x ys   x_ys   x s   x=20)r   	quotetabss   x=20ys   x	ys   =20   	s   =09s    xs   	x    s   =00s    
s   =00
)r   s   x y	zs	   x=20y=09z)istexts   x 
y	
s
   x=20
y=09
s
   x =0Ay	=0As   x y	s
   x=20y=09s
   x =0Dy	=0Ds   x 
y	
s   x=20
y=09
s   x =0D=0Ay	=0D=0As   x 
s   x s   x	
s   x	s   x=20s   x=09s   x =0Ds   x	=0D   .s   =2Es   .
s   =2E
s   .s   =2Es   . s   =2E=00s   a.
s   .a)r   r   sR   000000000000000000000000000000000000000000000000000000000000000000000000000

s[   000000000000000000000000000000000000000000000000000000000000000000000000000=
=FF
=FF
=FF)r   r'   a2b_qpb2a_qpr>   r3   r   r2   )r   r   r   r   s   &   r   test_qpBinASCIITest.test_qp7  s    NN	C&	I 1Q%  IIGH	$0#6	% 0159	% 0148	( 34e<	* 56>	( 34c:	, 78%@	& 12G<	& 12G<	& 12F;	& 12F;	& 1#2 67?	$0$7	$=tD)V7	- 89?K	*? @A-	/	*I JK:	< 		' 23V<	$0&9	$0$7	$=vF	& 1$?H	% 0>H	& 1$$O!	#	' 24@'J	$0&9	% 016:	% 0159	& 12F;	% 0" 56?	& 1#2 67@	% 016:	' 23X>	' 2dCXN	) 45yA	) 4E%	'	) 4UC"	$	, 78(	*	, 74H(	*	, 7F'	)	, 78%	'	, 74H(	*	, 7F'	)	*: ;<,	.	*: ;tL,	.	*: ;EJ-	/ 		) 4Sb 9:GD	* 5cr :;XF	) 4Sb 9TJ"	$	* 5cr :dK"	$	) 4Sb 9%H!	#	* 5cr :5I"	$ 		$0&9	& 12H=	& 12H=	& 12I>	' 23W=	% 0" 56?u  		s   
]> >^^)r   r   r   r   c           	         \         P                  ! V P                  V4      W#VR 7      p\         P                  ! V P                  V4      VR7      pV P	                  WVW#VR 7       R# ))r   r   r   r   N)r'   r   r   r   r#   )r   r   r   r   r   r    r!   s   &&&&&  r   test_b2a_qp_a2b_qp_round_trip*BinASCIITest.test_b2a_qp_a2b_qp_round_trip  s[     OONN6"v
	 ??4>>)#<VLf(1 	 	Qr   c           	     (   V P                  R 4      p\         F<  pVR8X  d   \        P                  ! V^ 4       K#  \	        \        V4      p V! V4       K>  	  R#   \
         d-   pT P                  RP                  Y!T4      4        Rp?Kt  Rp?ii ; i)r   r   z{}({!r}) raises {!r}N)r   r/   r'   r   r1   r)   r>   r?   )r   emptyfuncfrI   s   &    r   test_empty_stringBinASCIITest.test_empty_string  s    s#!Dy   *$'AK% "  K		077SIJJKs   AB%!BBc                d   \        \        4      \        \        4      ,
           F)  p V P                  \        \        \        V4      R 4       K+  	  V P                  \        \        P                  R ^ 4       R#   \         d,   pT P                  RP                  Y4      4        Rp?K  Rp?ii ; i)testz{}("test") raises {!r}N)setr/   r<   r2   r3   r1   r'   r)   r>   r?   r   )r   r   rI   s   &  r   test_unicode_b2aBinASCIITest.test_unicode_b2a  s    &]);;;DF!!)WXt-DfM < 	)X%5%5vqA  F		299$DEEFs   %A99B/ B**B/c                J   ^-pV P                   RV p\        \        \        4       F  w  r4\	        \
        V4      p\	        \
        V4      p V! V P                  V4      4      pV! V4      pVP                  R4      pV! V4      p	V P                  X	VRP                  WCW4      4       V P                  V	X4       V P                  V	\        4       V P                  \        VR4       K  	  R#   \         d,   p
T P                  RP                  YCT
4      4        Rp
?
LRp
?
ii ; i)r8   Nr   r9   r:      )r   r;   r<   r=   r1   r'   r   decoder)   r>   r?   r   r   r   r2   
ValueError)r   rA   rB   rC   rD   rE   rF   rG   
binary_resrH   rI   s   &          r   test_unicode_a2bBinASCIITest.test_unicode_a2b  s   ll8G$-7FB(B'C(B'CNs+, V
HHW%!f S# (,,2F23,DFS*-!!#u-j#v6 8  N		8??LMMNs   8C,,D"7!DD"c                   V P                  R 4      pV P                  \        P                  ! V4      R4       V P                  \        P                  ! VRR7      R4       V P                  \        P                  ! VRR7      R4       R# )s   hellos	   aGVsbG8=
TnewlineFs   aGVsbG8=N)r   r   r'   rP   )r   rV   s   & r   test_b2a_base64_newline$BinASCIITest.test_b2a_base64_newline  sn    NN8$,,Q/&	(,,Q=&	(,,Q>$	&r   )r   r   c                    \         P                  ! V P                  V4      VR 7      p\         P                  ! V P                  V4      4      pV P	                  WWBR 7       R# )r   N)r'   rP   r   rR   r#   )r   r   r   r    r!   s   &&&  r   test_base64_roundtrip"BinASCIITest.test_base64_roundtrip  sK    
 ''v(>P	&&t~~i'@AfKr   c                    \        \        R 4      4      pVRRR1,          pV P                  \        4      ;_uu_ 4        \        P
                  ! V4       RRR4       R#   + '       g   i     R# ; i)s	   noncontigN)
memoryviewr]   r2   BufferErrorr'   r   )r   mnoncontig_writables   &  r   test_c_contiguityBinASCIITest.test_c_contiguity  sN    y./ttW{++/0 ,+++s   AA0	)r   N)'__name__
__module____qualname____firstlineno__r   r   r   rN   r   r#   r+   r5   rJ   rX   rf   r   r   r   r   given
strategiesr   booleansr   r   r   r   r   r   r   r   r   r   r   r   r  r	  __static_attributes____classdictcell____classdict__s   @r   r
   r
      s    IAGuU3Z  G$$G1Q>
B8$,#LJ88v->#'J $$++R+8&&//1N	N

+5C$ Z2299;<; =;

Nd@L $$++-''002$$--/$$--/	QQKB7*& $$++-%%..0L	L
1 1r   r
   c                   &   a  ] tR tRt o R tRtV tR# )ArrayBinASCIITesti  c                B    \         P                   ! R \        V4      4      # )B)arraylist)r   r   s   &&r   r   ArrayBinASCIITest.type2test  s    {{3Q((r   ry   N)r  r  r  r  r   r  r  r  s   @r   r  r    s     ) )r   r  c                       ] tR tRt]tRtR# )BytearrayBinASCIITesti  ry   N)r  r  r  r  r]   r   r  ry   r   r   r  r    s    Ir   r  c                       ] tR tRt]tRtR# )MemoryviewBinASCIITesti  ry   N)r  r  r  r  r  r   r  ry   r   r   r   r     s    Ir   r   c                   P   a  ] tR tRt o ]! ]^,           ^RR7      R 4       tRtV tR# )ChecksumBigBufferTestCasei  F)sizememusedry_runc                z    R \         ^,           ,          pV P                  \        P                  ! V4      R4       R# )s   nyaniM"B>N)r   r   r'   r   )r   r#  r   s   && r   test_big_buffer)ChecksumBigBufferTestCase.test_big_buffer  s)    #'"-z:r   ry   N)	r  r  r  r  r   r   r'  r  r  r  s   @r   r"  r"    s&      S1WQ6; 7;r   r"  __main__)rP   r   r   r   r   )rR   r   r   r   r   )unittestr'   r  r   test.supportr   r   r   test.support.hypothesis_helperr   r=   r<   r/   TestCaser
   r  r  r   r"  r  mainry   r   r   <module>r/     s       	 - - 5-)0DD]18$$ ]1@) )
L \ ; 1 1 ; zMMO r   