+
    BiFv                       ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIHt ^ RIHt ^ RIHt ^ RIt^ RIHtHtHtHtHt ^ RIHtHt ]P6                  ! R4      t]P6                  ! R4      t]P6                  ! R	4      t ! R
 R]4      t  ! R R]!4      t" ! R R]PF                  ]]4      t$]%R8X  d   ]PL                  ! 4        R# R# )    N)
UserString)deepcopy)support)TestEqualityTestHashingLoggingResultLegacyLoggingResult#ResultWithNoStartTestRunStopTestRun)captured_stderr
gc_collectfoofoo.barquuxc                       ] tR t^tRt ! R R]P                  4      t ! R R]4      t ! R R]P                  4      t	Rt
R	# )
Testz5Keep these TestCase classes out of the main namespacec                   ,   a  ] tR t^"t o R tR tRtV tR# )Test.Fooc                    R # N selfs   &3/usr/lib/python3.14/test/test_unittest/test_case.pyrunTestTest.Foo.runTest#   s    4    c                    R # r   r   r   s   &r   test1Test.Foo.test1$       r   r   N)__name__
__module____qualname____firstlineno__r   r   __static_attributes____classdictcell____classdict__s   @r   Foor   "   s     r   r)   c                   &   a  ] tR t^&t o R tRtV tR# )Test.Barc                    R # r   r   r   s   &r   test2Test.Bar.test2'   r    r   r   N)r!   r"   r#   r$   r-   r%   r&   r'   s   @r   Barr+   &   s     r   r/   c                   H   a a ] tR t^)t oRtV 3R ltR tR tR tRt	Vt
V ;t# )Test.LoggingTestCasez!A test case which logs its calls.c                N   < \         \        P                  V `  R 4       Wn        R# testN)superr   LoggingTestCase__init__events)r   r8   	__class__s   &&r   r7   Test.LoggingTestCase.__init__,   s    $&&6v> Kr   c                <    V P                   P                  R 4       R# )setUpNr8   appendr   s   &r   r<   Test.LoggingTestCase.setUp0   s    KKw'r   c                <    V P                   P                  R 4       R# r3   r=   r   s   &r   r4   Test.LoggingTestCase.test3   s    KKv&r   c                <    V P                   P                  R 4       R# )tearDownNr=   r   s   &r   rC   Test.LoggingTestCase.tearDown6   s    KKz*r   )r8   )r!   r"   r#   r$   __doc__r7   r<   r4   rC   r%   r&   __classcell__)r9   r(   s   @@r   r6   r1   )   s!     /	!	(	'	+ 	+r   r6   r   N)r!   r"   r#   r$   rE   unittestTestCaser)   r/   r6   r%   r   r   r   r   r      s:    ;h c +(++ + +r   r   c                       ] tR t^:tRtR# )Listr   Nr!   r"   r#   r$   r%   r   r   r   rJ   rJ   :   s    r   rJ   c                   @  a  ] tR t^>t o ]P                  R4      ]P                  R4      3.t]P                  R4      ]P                  R4      3]P                  R4      ]P                  R4      3]P                  R4      ]P                  R4      3.tR t	R t
R tR tR tR	 tR
 tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR t R t!R t"R t#R t$R  t%R! t&R" t'R# t(R$ t)R% t*R& t+],PZ                  ! ].P^                  P`                  ^8  R'4      R( 4       t1],PZ                  ! ].P^                  P`                  ^8  R'4      R) 4       t2],PZ                  ! ].P^                  P`                  ^8  R'4      R* 4       t3R+ t4R, t5R- t6R. t7R/ t8R0 t9R1 t:R2 t;R3 t<R4 t=R5 t>R6 t?R7 t@R8 tAR9 tBR: tCR; tDR< tER= tFR> tGR? tHR@ tIRA tJRB tKRC tLRD tMRE tNRF tORG tPRH tQRI tRRJ tSRK tTRL tURM tVRN tWRO tXRP tYRQ tZRR t[RS t\RT t]RU t^RV t_RW t`RX taRY tb]cP                  RZ 4       teR[ tfR\ tgR] thR^ tiR_ tjR` tkRa tlRb tmRc tnRd toRe tpRf tqRg trRh tsRi ttRj tuRk tvRl twRm txRn tyRo tzRp t{Rq t|Rr t}Rs t~Rt tRu tRv tRw tRx t]EP
                  Ry 4       tRz tR{tV tR|# )}Test_TestCaser   r   r-   c                    ! R  R\         P                  4      pV P                  V! 4       P                  4       R4       \         P                  ! 4       pVP	                  ^^4       VP                  VP                  4      ;_uu_ 4        VP	                  ^^4       RRR4       V P                  \        4      ;_uu_ 4        VP                  4        RRR4       R#   + '       g   i     LH; i  + '       g   i     R# ; i)c                   ,   a  ] tR t^Yt o R tR tRtV tR# )3Test_TestCase.test_init__no_test_name.<locals>.Testc                    \        4       hr   MyExceptionr   s   &r   r   ;Test_TestCase.test_init__no_test_name.<locals>.Test.runTestZ   	    []2r   c                    R # r   r   r   s   &r   r4   8Test_TestCase.test_init__no_test_name.<locals>.Test.test[       Dr   r   Nr!   r"   r#   r$   r   r4   r%   r&   r'   s   @r   r   rP   Y        2  r   r   z.Test.runTestN)	rG   rH   assertEndsWithidassertEqualassertRaisesfailureExceptionAttributeErrorrun)r   r   r4   s   &  r   test_init__no_test_name%Test_TestCase.test_init__no_test_nameX   s    	!8$$ 	! 	DFIIK9   "At4455Q" 6 ~..HHJ /. 65 /..s   	CC/C,	/D 	c                     ! R  R\         P                  4      pV P                  V! R4      P                  4       R4       R# )c                   ,   a  ] tR t^nt o R tR tRtV tR# )7Test_TestCase.test_init__test_name__valid.<locals>.Testc                    \        4       hr   rR   r   s   &r   r   ?Test_TestCase.test_init__test_name__valid.<locals>.Test.runTesto   rU   r   c                    R # r   r   r   s   &r   r4   <Test_TestCase.test_init__test_name__valid.<locals>.Test.testp   rX   r   r   NrY   r'   s   @r   r   rf   n   rZ   r   r   r4   z
.Test.testN)rG   rH   r[   r\   r   r   s   & r   test_init__test_name__valid)Test_TestCase.test_init__test_name__validm   s1    	!8$$ 	! 	DLOO-|<r   c                     ! R  R\         P                  4      p V! R4       V P                  R4       R#   \         d     R# i ; i)c                   ,   a  ] tR t^yt o R tR tRtV tR# )9Test_TestCase.test_init__test_name__invalid.<locals>.Testc                    \        4       hr   rR   r   s   &r   r   ATest_TestCase.test_init__test_name__invalid.<locals>.Test.runTestz   rU   r   c                    R # r   r   r   s   &r   r4   >Test_TestCase.test_init__test_name__invalid.<locals>.Test.test{   rX   r   r   NrY   r'   s   @r   r   rp   y   rZ   r   r   testfoozFailed to raise ValueErrorN)rG   rH   fail
ValueErrorrk   s   & r   test_init__test_name__invalid+Test_TestCase.test_init__test_name__invalidx   sC    	!8$$ 	!	4O II23  		s   6 AAc                     ! R  R\         P                  4      pV P                  V! R4      P                  4       ^4       R# )c                   &   a  ] tR t^t o R tRtV tR# ).Test_TestCase.test_countTestCases.<locals>.Fooc                    R # r   r   r   s   &r   r4   3Test_TestCase.test_countTestCases.<locals>.Foo.test   rX   r   r   Nr!   r"   r#   r$   r4   r%   r&   r'   s   @r   r)   r|      s       r   r)   r4   N)rG   rH   r]   countTestCasesr   r)   s   & r   test_countTestCases!Test_TestCase.test_countTestCases   s3    	!(## 	! 	V335q9r   c                     ! R  R\         P                  4      pV! 4       P                  4       pV P                  \	        V4      \         P
                  4       R# )c                   &   a  ] tR t^t o R tRtV tR# )1Test_TestCase.test_defaultTestResult.<locals>.Fooc                    R # r   r   r   s   &r   r   9Test_TestCase.test_defaultTestResult.<locals>.Foo.runTest       r   r   Nr!   r"   r#   r$   r   r%   r&   r'   s   @r   r)   r            r   r)   N)rG   rH   defaultTestResultr]   type
TestResult)r   r)   results   &  r   test_defaultTestResult$Test_TestCase.test_defaultTestResult   s@    	(## 	 ((*fx':':;r   c                   a . p\        V4      p ! V3R  lR\        P                  4      oS! V4      P                  V4       . ROpV P	                  W4       R# )c                   6   <a a ] tR t^t oVV 3R ltRtVtV ;t# )>Test_TestCase.test_run_call_order__error_in_setUp.<locals>.Fooc                6   < \         SV `  4        \        R 4      hzraised by Foo.setUpr5   r<   RuntimeErrorr   r)   r9   s   &r   r<   DTest_TestCase.test_run_call_order__error_in_setUp.<locals>.Foo.setUp       c4&("#899r   r   )r!   r"   r#   r$   r<   r%   r&   rF   r9   r(   r)   s   @@r   r)   r      s     : :r   r)   N)	startTestr<   addErrorstopTestr   r   r6   ra   r]   r   r8   r   expectedr)   s   &   @r   #test_run_call_order__error_in_setUp1Test_TestCase.test_run_call_order__error_in_setUp   sI    v&	:$&& 	:
 	FA*r   c                   a . p ! V3R  lR\         P                  4      oS! V4      P                  4        . ROpV P                  W4       R# )c                   <   <a a ] tR t^t oR tVV 3R ltRtVtV ;t# )MTest_TestCase.test_run_call_order__error_in_setUp_default_result.<locals>.Fooc                ,    \        V P                  4      # r   r   r8   r   s   &r   r   _Test_TestCase.test_run_call_order__error_in_setUp_default_result.<locals>.Foo.defaultTestResult       $T[[11r   c                6   < \         SV `  4        \        R 4      hr   r   r   s   &r   r<   STest_TestCase.test_run_call_order__error_in_setUp_default_result.<locals>.Foo.setUp   r   r   r   )	r!   r"   r#   r$   r   r<   r%   r&   rF   r   s   @@r   r)   r      s     2: :r   r)   N)startTestRunr   r<   r   r   stopTestRunr   r6   ra   r]   r   r8   r   r)   s   &  @r   2test_run_call_order__error_in_setUp_default_result@Test_TestCase.test_run_call_order__error_in_setUp_default_result   s?    	:$&& 	: 	F/*r   c                   a . p\        V4      p ! V3R  lR\        P                  4      o. ROpS! V4      P                  V4       V P	                  W4       R# )c                   6   <a a ] tR t^t oVV 3R ltRtVtV ;t# )=Test_TestCase.test_run_call_order__error_in_test.<locals>.Fooc                6   < \         SV `  4        \        R 4      hraised by Foo.testr5   r4   r   r   s   &r   r4   BTest_TestCase.test_run_call_order__error_in_test.<locals>.Foo.test       c4%'"#788r   r   r!   r"   r#   r$   r4   r%   r&   rF   r   s   @@r   r)   r      s     9 9r   r)   N)r   r<   r4   r   rC   r   r   r   s   &   @r   "test_run_call_order__error_in_test0Test_TestCase.test_run_call_order__error_in_test   sI    v&	9$&& 	9
8F*r   c                   a . p ! V3R  lR\         P                  4      o. ROpS! V4      P                  4        V P                  W4       R# )c                   <   <a a ] tR t^t oR tVV 3R ltRtVtV ;t# )LTest_TestCase.test_run_call_order__error_in_test_default_result.<locals>.Fooc                ,    \        V P                  4      # r   r   r   s   &r   r   ^Test_TestCase.test_run_call_order__error_in_test_default_result.<locals>.Foo.defaultTestResult   r   r   c                6   < \         SV `  4        \        R 4      hr   r   r   s   &r   r4   QTest_TestCase.test_run_call_order__error_in_test_default_result.<locals>.Foo.test   r   r   r   	r!   r"   r#   r$   r   r4   r%   r&   rF   r   s   @@r   r)   r      s     29 9r   r)   N)r   r   r<   r4   r   rC   r   r   r   r   s   &  @r   1test_run_call_order__error_in_test_default_result?Test_TestCase.test_run_call_order__error_in_test_default_result   s>    	9$&& 	9GF*r   c                   a . p\        V4      p ! V3R  lR\        P                  4      o. ROpS! V4      P                  V4       V P	                  W4       R# )c                   6   <a a ] tR t^t oVV 3R ltRtVtV ;t# )?Test_TestCase.test_run_call_order__failure_in_test.<locals>.Fooc                F   < \         SV `  4        V P                  R 4       R# r   Nr5   r4   rv   r   s   &r   r4   DTest_TestCase.test_run_call_order__failure_in_test.<locals>.Foo.test       c4%'		./r   r   r   r   s   @@r   r)   r      s     0 0r   r)   Nr   r<   r4   
addFailurerC   r   r   r   s   &   @r   $test_run_call_order__failure_in_test2Test_TestCase.test_run_call_order__failure_in_test   sI    v&	0$&& 	0
:F*r   c                   a  ! V3R  lR\         P                  4      o. ROp. pS! V4      P                  4        V P                  W!4       R# )c                   <   <a a ] tR t^t oR tVV 3R ltRtVtV ;t# )NTest_TestCase.test_run_call_order__failure_in_test_default_result.<locals>.Fooc                ,    \        V P                  4      # r   r   r   s   &r   r   `Test_TestCase.test_run_call_order__failure_in_test_default_result.<locals>.Foo.defaultTestResult   r   r   c                F   < \         SV `  4        V P                  R 4       R# r   r   r   s   &r   r4   STest_TestCase.test_run_call_order__failure_in_test_default_result.<locals>.Foo.test   r   r   r   r   r   s   @@r   r)   r      s     20 0r   r)   N)r   r   r<   r4   r   rC   r   r   r   )r   r   r8   r)   s   &  @r   3test_run_call_order__failure_in_test_default_resultATest_TestCase.test_run_call_order__failure_in_test_default_result   s>    	0$&& 	0IF*r   c                   a . p\        V4      p ! V3R  lR\        P                  4      oS! V4      P                  V4       . ROpV P	                  W4       R# )c                   6   <a a ] tR tRt oVV 3R ltRtVtV ;t# )ATest_TestCase.test_run_call_order__error_in_tearDown.<locals>.Fooi  c                6   < \         SV `  4        \        R 4      hzraised by Foo.tearDownr5   rC   r   r   s   &r   rC   JTest_TestCase.test_run_call_order__error_in_tearDown.<locals>.Foo.tearDown      c4)+"#;<<r   r   )r!   r"   r#   r$   rC   r%   r&   rF   r   s   @@r   r)   r     s     = =r   r)   N)r   r<   r4   rC   r   r   r   r   s   &   @r   &test_run_call_order__error_in_tearDown4Test_TestCase.test_run_call_order__error_in_tearDown  sK    v&	=$&& 	=
 	F *r   c                   a  ! V3R  lR\         P                  4      o. pS! V4      P                  4        . ROpV P                  W4       R# )c                   <   <a a ] tR tRt oR tVV 3R ltRtVtV ;t# )PTest_TestCase.test_run_call_order__error_in_tearDown_default_result.<locals>.Fooi!  c                ,    \        V P                  4      # r   r   r   s   &r   r   bTest_TestCase.test_run_call_order__error_in_tearDown_default_result.<locals>.Foo.defaultTestResult"  r   r   c                6   < \         SV `  4        \        R 4      hr   r   r   s   &r   rC   YTest_TestCase.test_run_call_order__error_in_tearDown_default_result.<locals>.Foo.tearDown$  r   r   r   )	r!   r"   r#   r$   r   rC   r%   r&   rF   r   s   @@r   r)   r   !  s     2= =r   r)   N)r   r   r<   r4   rC   r   r   r   r   r   s   &  @r   5test_run_call_order__error_in_tearDown_default_resultCTest_TestCase.test_run_call_order__error_in_tearDown_default_result  s?    	=$&& 	= F;*r   c                     ! R  R\         P                  4      pV P                  \        4      ;_uu_ 4        V! R4      P	                  4        RRR4       R#   + '       g   i     R# ; i)c                   ,   a  ] tR tRt o R tR tRtV tR# )=Test_TestCase.test_run_call_order_default_result.<locals>.Fooi2  c                    \        4       # r   )r
   r   s   &r   r   OTest_TestCase.test_run_call_order_default_result.<locals>.Foo.defaultTestResult3  s    :<<r   c                    R # r   r   r   s   &r   r4   BTest_TestCase.test_run_call_order_default_result.<locals>.Foo.test5  r   r   r   N)r!   r"   r#   r$   r   r4   r%   r&   r'   s   @r   r)   r   2  s     = r   r)   r4   N)rG   rH   assertWarnsRuntimeWarningra   r   s   & r   "test_run_call_order_default_result0Test_TestCase.test_run_call_order_default_result0  sD    	(## 	 n--KOO .---s   AA)	c                  a  ! R  R4      o ! V3R lR\         P                  4      pV P                  \        4      ;_uu_ 4       pV! R4      P	                  4        RRR4       V P                  R\        XP                  4      4       V P                  R\        VP                  4      4       V P                  VP                  \        4       V P                  R\        VP                  4      4       V P                  \        4      ;_uu_ 4       pV! R4      P	                  4        RRR4       V P                  R\        VP                  4      4       V P                  R\        VP                  4      4       V P                  VP                  \        4       V P                  R	\        VP                  4      4       V P                  \        4      ;_uu_ 4       pV! R
4      P	                  4        RRR4       V P                  R\        VP                  4      4       V P                  R
\        VP                  4      4       V P                  VP                  \        4       V P                  RSP                  : 2\        VP                  4      4       R#   + '       g   i     ELF; i  + '       g   i     EL; i  + '       g   i     L; i)c                   &   a  ] tR tRt o R tRtV tR# )GTest_TestCase.test_deprecation_of_return_val_from_test.<locals>.Nothingi=  c                
    VR J # r   r   )r   os   &&r   __eq__NTest_TestCase.test_deprecation_of_return_val_from_test.<locals>.Nothing.__eq__>  s    Dy r   r   N)r!   r"   r#   r$   r  r%   r&   r'   s   @r   Nothingr   =  s     ! !r   r  c                   :   <a  ] tR tRt o R tR tV3R ltRtV tR# )CTest_TestCase.test_deprecation_of_return_val_from_test.<locals>.Fooi@  c                    ^#    r   r   s   &r   r   ITest_TestCase.test_deprecation_of_return_val_from_test.<locals>.Foo.test1A  s    r   c              3     "   ^x  R# 5ir	  Nr   r   s   &r   r-   ITest_TestCase.test_deprecation_of_return_val_from_test.<locals>.Foo.test2C  s
     s   	c                   < S! 4       # r   r   )r   r  s   &r   test3ITest_TestCase.test_deprecation_of_return_val_from_test.<locals>.Foo.test3E  s    y r   r   N)	r!   r"   r#   r$   r   r-   r  r%   r&   )r(   r  s   @r   r)   r  @  s     ! !r   r)   r   N3It is deprecated to return a value that is not Nonezreturned 'int'r-   zreturned 'generator'r  z	returned )rG   rH   r   DeprecationWarningra   assertInstrwarningr]   filename__file__r!   )r   r)   wr  s   &  @r   (test_deprecation_of_return_val_from_test6Test_TestCase.test_deprecation_of_return_val_from_test;  s   	! 	!	!(## 	! 011QL 2KSQRQZQZ^\gs199~.X.&AII7011QL 2KSQRQZQZ^\gs199~.X.,c!))n=011QL 2KSQRQZQZ^\gs199~.X.	'"2"2!56AIIG' 211 211 21s$   JJ-KJ*	-J>	K	c                    ! R  R\         P                  4      pV P                  \        4      ;_uu_ 4       p\        P
                  ! RR\        4       V! R4      P                  4        \        P                  ! 4        RRR4       V P                  R\        XP                  4      4       V P                  R\        VP                  4      4       V P                  VP                  \        4       V P                  R\        VP                  4      4       V P                  R\        VP                  4      4       R#   + '       g   i     L; i)	c                   &   a  ] tR tRt o R tRtV tR# )PTest_TestCase.test_deprecation_of_return_val_from_test_async_method.<locals>.Fooi^  c                   "   ^# 5ir  r   r   s   &r   r   VTest_TestCase.test_deprecation_of_return_val_from_test_async_method.<locals>.Foo.test1_  s     s   r   N)r!   r"   r#   r$   r   r%   r&   r'   s   @r   r)   r  ^  s      r   r)   ignorezcoroutine .* was never awaitedr   Nr  zreturned 'coroutine'zBMaybe you forgot to use IsolatedAsyncioTestCase as the base class?)rG   rH   r   r  warningsfilterwarningsr   ra   r   r   r  r  r  r]   r  r  )r   r)   r  s   &  r   5test_deprecation_of_return_val_from_test_async_methodCTest_TestCase.test_deprecation_of_return_val_from_test_async_method]  s    	(## 	 011Q##H4nFL 	 2
 	KSQRQZQZ^\gs199~.X.,c!))n=P		N	
 21s   AD==E	c                   a  ! V3R  lR\         P                  4      oS! V4      P                  V4       V P                  W#4       R# )c                   6   <a a ] tR tRt oVV 3R ltRtVtV ;t# )6Test_TestCase._check_call_order__subtests.<locals>.Fooiq  c                  < \         SV `  4        R F  pV P                  VR7      ;_uu_ 4        V^8X  d   V P                  R4       R F?  pV P                  VR7      ;_uu_ 4        W,          ^8X  d   \	        R4      h RRR4       KA  	  RRR4       K  	  ^^ ,           R#   + '       g   i     Kk  ; i  + '       g   i     K  ; i)r	  ifailurejr   Nr	        r/  r0  )r5   r4   subTestrv   r   r   r*  r-  r)   r9   s   &  r   r4   ;Test_TestCase._check_call_order__subtests.<locals>.Foo.testr  s    c4%'"A**6 IIi0!'A!%!2!2#$5A:*67K*L$L $. "3!2 "( +* # A "3!2!2	 +**s#   8B8'B$B8$B5/	B88C	r   r   r   s   @@r   r)   r'  q  s     
 
r   r)   Nr   r   r   r8   expected_eventsr)   s   &&&&@r   _check_call_order__subtests)Test_TestCase._check_call_order__subtestsp  s5    	$&& 	( 	F1r   c                L    . p\        V4      p. ROpV P                  W!V4       R# )r   N)r   r<   r4   addSubTestFailureaddSubTestSuccessr:  r:  r;  r   rC   r   )r   r7  r   r8   r   r   s   &   r   test_run_call_order__subtests+Test_TestCase.test_run_call_order__subtests  s+    v&M 	((Br   c                L    . p\        V4      p. ROpV P                  W!V4       R# )r   Nr   )r	   r7  r<  s   &   r   $test_run_call_order__subtests_legacy2Test_TestCase.test_run_call_order__subtests_legacy  s*     $V,:((Br   c                   a  ! V3R  lR\         P                  4      oS! V4      P                  V4       V P                  W#4       R# )c                   6   <a a ] tR tRt oVV 3R ltRtVtV ;t# )>Test_TestCase._check_call_order__subtests_success.<locals>.Fooi  c                &  < \         SV `  4        R FS  pV P                  VR7      ;_uu_ 4        R F'  pV P                  VR7      ;_uu_ 4         RRR4       K)  	  RRR4       KU  	  R#   + '       g   i     KJ  ; i  + '       g   i     K~  ; i)r	  r)  r,  N)r	  r/  r1  )r5   r4   r2  r3  s   &  r   r4   CTest_TestCase._check_call_order__subtests_success.<locals>.Foo.test  sq    c4%'A**!'A!%!2!2 $ "3!2 "( +*   "3!2!2 +**s#    A?A+A?+A<6	A??Br   r   r   s   @@r   r)   rD         % %r   r)   Nr   r5  s   &&&&@r   #_check_call_order__subtests_success1Test_TestCase._check_call_order__subtests_success  s5    	%$&& 	% 	F1r   c                |    . p\        V4      p. RO^R.,          ,           . RO,           pV P                  W!V4       R# )r   r;  N)r   r<   r4   )rC   
addSuccessr   )r   rH  r<  s   &   r   %test_run_call_order__subtests_success3Test_TestCase.test_run_call_order__subtests_success  sC    v& 3.//0<= 	00Jr   c                L    . p\        V4      p. ROpV P                  W!V4       R# )r   N)r   r<   r4   rC   rK  r   )r	   rH  r<  s   &   r   ,test_run_call_order__subtests_success_legacy:Test_TestCase.test_run_call_order__subtests_success_legacy  s(    $V,.00Jr   c                   a . p\        V4      pR Vn         ! V3R lR\        P                  4      o. ROpS! V4      P	                  V4       V P                  W4       R# )Tc                   6   <a a ] tR tRt oVV 3R ltRtVtV ;t# )ATest_TestCase.test_run_call_order__subtests_failfast.<locals>.Fooi  c                b  < \         SV `  4        V P                  ^R7      ;_uu_ 4        V P                  R4       RRR4       V P                  ^R7      ;_uu_ 4        V P                  R4       RRR4       V P                  R4       R#   + '       g   i     LW; i  + '       g   i     L6; i)r	  r)  r+  N)r5   r4   r2  rv   r   s   &r   r4   FTest_TestCase.test_run_call_order__subtests_failfast.<locals>.Foo.test  sp    c4%'\\A\&&IIi( '\\A\&&IIi( '		)$	 '&&&s   BBB	B.	r   r   r   s   @@r   r)   rS    rG  r   r)   N)r   r<   r4   r:  rC   r   )r   failfastr   r6   ra   r]   r   s   &   @r   &test_run_call_order__subtests_failfast4Test_TestCase.test_run_call_order__subtests_failfast  sQ    v&	%$&& 	%AF*r   c                  a . o ! V3R  lR\         P                  4      p\         P                  ! 4       pRVn        \         P                  ! 4       P                  V4      pVP                  V4       . ROpV P                  SV4       R# )c                   F   <a  ] tR tRt o V3R ltV3R ltV3R ltRtV tR# )1Test_TestCase.test_subtests_failfast.<locals>.Fooi  c                   < V P                  4       ;_uu_ 4        SP                  R 4       RRR4       SP                  R4       R#   + '       g   i     L#; i)a1Na2)r2  r>   r   r8   s   &r   test_a8Test_TestCase.test_subtests_failfast.<locals>.Foo.test_a  s3    \\^^MM$' $d# $^s   AA	c                >  < V P                  4       ;_uu_ 4        SP                  R 4       RRR4       V P                  4       ;_uu_ 4        V P                  R4       RRR4       SP                  R4       R#   + '       g   i     LU; i  + '       g   i     L6; i)b1Nr+  b2)r2  r>   rv   r_  s   &r   test_b8Test_TestCase.test_subtests_failfast.<locals>.Foo.test_b  sU    \\^^MM$' $\\^^IIi( $d#	 $^#^s   A9B9B		B	c                *   < SP                  R 4       R# )cNr>   r_  s   &r   test_c8Test_TestCase.test_subtests_failfast.<locals>.Foo.test_c  s    c"r   r   N)	r!   r"   r#   r$   r`  re  rj  r%   r&   r(   r8   s   @r   r)   r[    s     $
$# #r   r)   TN)r]  r^  rc  )rG   rH   r   rV  
TestLoaderloadTestsFromTestCasera   r]   )r   r)   r   suiter   r8   s   &    @r   test_subtests_failfast$Test_TestCase.test_subtests_failfast  sk    	#(## 	#  $$&##%;;C@		&%*r   c                   a . o ! V3R  lR\         P                  4      pV! R4      P                  4        V P                  SRR.4       R# )c                   .   <a  ] tR tRt o V3R ltRtV tR# ).Test_TestCase.test_subtests_debug.<locals>.Fooi  c                   < SP                  R 4       V P                  4       ;_uu_ 4        SP                  R4       RRR4       R#   + '       g   i     R# ; i)	test case	subtest 1N)r>   r2  r_  s   &r   r`  5Test_TestCase.test_subtests_debug.<locals>.Foo.test_a  s2    k*\\^^MM+. $^^^s   AA	r   N)r!   r"   r#   r$   r`  r%   r&   rl  s   @r   r)   rt    s     / /r   r)   r`  rv  rw  N)rG   rH   debugr]   )r   r)   r8   s   & @r   test_subtests_debug!Test_TestCase.test_subtests_debug  sA    	/(## 	/ 	H+{!;<r   c                     ! R  R\         P                  4      pV P                  V! R4      P                  \        4       R# )c                   &   a  ] tR tRt o R tRtV tR# )9Test_TestCase.test_failureException__default.<locals>.Fooi  c                    R # r   r   r   s   &r   r4   >Test_TestCase.test_failureException__default.<locals>.Foo.test  r   r   r   Nr   r'   s   @r   r)   r~    r   r   r)   r4   N)rG   rH   assertIsr_   AssertionErrorr   s   & r   test_failureException__default,Test_TestCase.test_failureException__default  s.    	(## 	 	c&k22NCr   c                    . p\        V4      p ! R  R\        P                  4      pV P                  V! R4      P                  \
        4       V! R4      P                  V4       . ROpV P                  W4       R# )c                   *   a  ] tR tRt o R t]tRtV tR# )MTest_TestCase.test_failureException__subclassing__explicit_raise.<locals>.Fooi  c                    \        4       hr   )r   r   s   &r   r4   RTest_TestCase.test_failureException__subclassing__explicit_raise.<locals>.Foo.test  s
    "n$r   r   N	r!   r"   r#   r$   r4   r   r_   r%   r&   r'   s   @r   r)   r    s     %  ,r   r)   r4   Nr   r   r   r   rG   rH   r  r_   r   ra   r]   r   r8   r   r)   r   s   &    r   2test_failureException__subclassing__explicit_raise@Test_TestCase.test_failureException__subclassing__explicit_raise  b    v&	,(## 	, 	c&k22LA 	F:*r   c                    . p\        V4      p ! R  R\        P                  4      pV P                  V! R4      P                  \
        4       V! R4      P                  V4       . ROpV P                  W4       R# )c                   *   a  ] tR tRt o R t]tRtV tR# )MTest_TestCase.test_failureException__subclassing__implicit_raise.<locals>.Fooi#  c                (    V P                  R 4       R# r   N)rv   r   s   &r   r4   RTest_TestCase.test_failureException__subclassing__implicit_raise.<locals>.Foo.test$  s    		% r   r   Nr  r'   s   @r   r)   r  #  s     !  ,r   r)   r4   Nr  r  r  s   &    r   2test_failureException__subclassing__implicit_raise@Test_TestCase.test_failureException__subclassing__implicit_raise  r  r   c                b     ! R  R\         P                  4      pV! 4       P                  4        R# )c                   &   a  ] tR tRt o R tRtV tR# )%Test_TestCase.test_setUp.<locals>.Fooi2  c                    R # r   r   r   s   &r   r   -Test_TestCase.test_setUp.<locals>.Foo.runTest3  r   r   r   Nr   r'   s   @r   r)   r  2  r   r   r)   N)rG   rH   r<   r   s   & r   
test_setUpTest_TestCase.test_setUp1  s!    	(## 	
 	r   c                b     ! R  R\         P                  4      pV! 4       P                  4        R# )c                   &   a  ] tR tRt o R tRtV tR# )(Test_TestCase.test_tearDown.<locals>.Fooi;  c                    R # r   r   r   s   &r   r   0Test_TestCase.test_tearDown.<locals>.Foo.runTest<  r   r   r   Nr   r'   s   @r   r)   r  ;  r   r   r)   N)rG   rH   rC   r   s   & r   test_tearDownTest_TestCase.test_tearDown:  s"    	(## 	
 	r   c                     ! R  R\         P                  4      pV P                  V! 4       P                  4       \        4       R# )c                   &   a  ] tR tRt o R tRtV tR# )"Test_TestCase.test_id.<locals>.FooiI  c                    R # r   r   r   s   &r   r   *Test_TestCase.test_id.<locals>.Foo.runTestJ  r   r   r   Nr   r'   s   @r   r)   r  I  r   r   r)   N)rG   rH   assertIsInstancer\   r  r   s   & r   test_idTest_TestCase.test_idH  s.    	(## 	 	cehhj#.r   c                   aa . o\        S4      o ! VV3R  lR\        P                  4      pV! R4      P                  4       pV P	                  VS4       . ROpV P                  SV4       R# )c                   :   <a  ] tR tRt o V3R ltV3R ltRtV tR# );Test_TestCase.test_run__uses_defaultTestResult.<locals>.FooiX  c                *   < SP                  R 4       R# r3   ri  r_  s   &r   r4   @Test_TestCase.test_run__uses_defaultTestResult.<locals>.Foo.testY  s    f%r   c                   < S# r   r   )r   defaultResults   &r   r   MTest_TestCase.test_run__uses_defaultTestResult.<locals>.Foo.defaultTestResult\  s	    $$r   r   N)r!   r"   r#   r$   r4   r   r%   r&   )r(   r  r8   s   @r   r)   r  X  s     &% %r   r)   r4   N)r   r   r4   rK  r   r   )r   rG   rH   ra   r  r]   )r   r)   r   r   r  r8   s   &   @@r    test_run__uses_defaultTestResult.Test_TestCase.test_run__uses_defaultTestResultT  s`    %f-	% 	%(## 	% V"fm,'*r   c                     ! R  R\         P                  4      p\         P                  ! 4       pV! R4      P                  V4      pV P	                  W24       R# )c                   &   a  ] tR tRt o R tRtV tR# )9Test_TestCase.test_run__returns_given_result.<locals>.Fooik  c                    R # r   r   r   s   &r   r4   >Test_TestCase.test_run__returns_given_result.<locals>.Foo.testl  r   r   r   Nr   r'   s   @r   r)   r  k  r   r   r)   r4   N)rG   rH   r   ra   r  )r   r)   r   retvals   &   r   test_run__returns_given_result,Test_TestCase.test_run__returns_given_resulti  sB    	(## 	 $$&V(f%r   c                   aa \         P                  ! 4       o\         P                  ! 4       o ! VV3R  lR\         P                  4      pV! R4      ! S4      pV P                  VS4       R# )c                   6   <a  ] tR tRt o R tVV3R ltRtV tR# )KTest_TestCase.test_call__invoking_an_instance_delegates_to_run.<locals>.Fooi{  c                    R # r   r   r   s   &r   r4   PTest_TestCase.test_call__invoking_an_instance_delegates_to_run.<locals>.Foo.test|  r   r   c                ,   < V P                  VS4       S# r   )r  )r   r   resultIn	resultOuts   &&r   ra   OTest_TestCase.test_call__invoking_an_instance_delegates_to_run.<locals>.Foo.run  s    fh/  r   r   N)r!   r"   r#   r$   r4   ra   r%   r&   )r(   r  r  s   @r   r)   r  {  s     ! !r   r)   r4   N)rG   r   rH   r  )r   r)   r  r  r  s   &  @@r   0test_call__invoking_an_instance_delegates_to_run>Test_TestCase.test_call__invoking_an_instance_delegates_to_runw  sT    &&('')		! 	!(## 	! VX&fi(r   c                D    V P                  V P                  4       4       R # r   )assertIsNoneshortDescriptionr   s   &r   $testShortDescriptionWithoutDocstring2Test_TestCase.testShortDescriptionWithoutDocstring  s    $//12r   z)Docstrings are omitted with -O2 and abovec                F    V P                  V P                  4       R 4       R# )z7Tests shortDescription() for a method with a docstring.Nr]   r  r   s   &r   (testShortDescriptionWithOneLineDocstring6Test_TestCase.testShortDescriptionWithOneLineDocstring  s"     	%%'I	Kr   c                F    V P                  V P                  4       R4       R# )zTests shortDescription() for a method with a longer docstring.

This method ensures that only the first line of a docstring is
returned used in the short description, no matter how long the
whole thing is.
z>Tests shortDescription() for a method with a longer docstring.Nr  r   s   &r   *testShortDescriptionWithMultiLineDocstring8Test_TestCase.testShortDescriptionWithMultiLineDocstring  s#     	%%'	r   c                F    V P                  V P                  4       R4       R# )zv
Tests shortDescription() whitespace is trimmed, so that the first
line of nonwhite-space text becomes the docstring.
zATests shortDescription() whitespace is trimmed, so that the firstNr  r   s   &r   &testShortDescriptionWhitespaceTrimming4Test_TestCase.testShortDescriptionWhitespaceTrimming  s"     	!!#O	Qr   c                   a  ! R  R\         4      oS! 4       S! 4       r!V P                  W8H  4       RV3R llpV P                  SV4       V P                  W4       R# )c                       ] tR tRtRtRtR# )7Test_TestCase.testAddTypeEqualityFunc.<locals>.SadSnakei  z)Dummy class for test_addTypeEqualityFunc.r   N)r!   r"   r#   r$   rE   r%   r   r   r   SadSnaker    s    ;r   r  Nc                 T   < \        V 4      \        V4      u;8H  ;'       d    S8H  # u # r   )r   )abmsgr  s   &&&r   AllSnakesCreatedEqualDTest_TestCase.testAddTypeEqualityFunc.<locals>.AllSnakesCreatedEqual  s$    7d1g111111r   r   )objectassertFalseaddTypeEqualityFuncr]   )r   s1s2r  r  s   &   @r   testAddTypeEqualityFunc%Test_TestCase.testAddTypeEqualityFunc  sN    	<v 	<XZB"	2  +@A r   c                    \        4       pV P                  W4       V P                  V P                  V P                  V\        4       4       R # r   )r  r  r^   r_   r   things   & r   testAssertIsTest_TestCase.testAssertIs  s5    e#$//vxPr   c                    \        4       pV P                  V\        4       4       V P                  V P                  V P                  W4       R # r   )r  assertIsNotr^   r_   r  s   & r   testAssertIsNotTest_TestCase.testAssertIsNot  s9    )$//1A1A5Pr   c                d   \        4       pV P                  V\        4       V P                  V\        \        34       V P	                  V P
                  4      ;_uu_ 4       pV P                  V\        4       R R R 4       V P                  \        XP                  4      R4       V P	                  V P
                  4      ;_uu_ 4       pV P                  V\        \        34       R R R 4       V P                  \        VP                  4      R4       V P	                  V P
                  4      ;_uu_ 4       pV P                  V\        R4       R R R 4       V P                  R\        VP                  4      4       V P	                  V P
                  4      ;_uu_ 4       pV P                  V\        RR7       R R R 4       V P                  R\        VP                  4      4       R #   + '       g   i     ELv; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     Lr; i)Nz&[] is not an instance of <class 'int'>z@[] is not an instance of any of (<class 'int'>, <class 'float'>)ababahalamahar  )rJ   r  listintr^   r_   r]   r  	exceptionfloatr  r   r  cms   &  r   testAssertIsInstance"Test_TestCase.testAssertIsInstance  s   eT*ec4[1t4455!!%- 6R\\*8	:t4455!!%#u6 6R\\*R	T t4455!!%o> 6os2<<'89t4455!!%/!B 6os2<<'89 655 655
 65 650    G$G84HH$G5	8H		H	H/	c                d   \        4       pV P                  V\        4       V P                  V\        \        34       V P	                  V P
                  4      ;_uu_ 4       pV P                  V\        4       R R R 4       V P                  \        XP                  4      R4       V P	                  V P
                  4      ;_uu_ 4       pV P                  V\        \        34       R R R 4       V P                  \        VP                  4      R4       V P	                  V P
                  4      ;_uu_ 4       pV P                  V\        R4       R R R 4       V P                  R\        VP                  4      4       V P	                  V P
                  4      ;_uu_ 4       pV P                  V\        RR7       R R R 4       V P                  R\        VP                  4      4       R #   + '       g   i     ELv; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     Lr; i)Nz#[] is an instance of <class 'list'>r  r  )rJ   assertNotIsInstancer  r  r^   r_   r  r]   r  r  r  r  s   &  r   testAssertNotIsInstance%Test_TestCase.testAssertNotIsInstance  s     ,  e5t4455$$UD1 6R\\*5	7t4455$$US$K8 6R\\*5	7 t4455$$UD/B 6os2<<'89t4455$$UDo$F 6os2<<'89 655 655
 65 65r   c                   V P                  \        \        4       V P                  \        \        \        34       V P	                  V P
                  4      ;_uu_ 4       pV P                  \        \        4       R R R 4       V P                  \        XP                  4      \        : R24       V P	                  V P
                  4      ;_uu_ 4       pV P                  \        \        \        34       R R R 4       V P                  \        VP                  4      \        : R24       V P	                  V P
                  4      ;_uu_ 4       pV P                  ^\        4       R R R 4       V P                  \        VP                  4      R4       V P	                  V P
                  4      ;_uu_ 4       pV P                  \        \        R4       R R R 4       V P                  R\        VP                  4      4       V P	                  V P
                  4      ;_uu_ 4       pV P                  \        \        RR7       R R R 4       V P                  R\        VP                  4      4       R #   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL9; i  + '       g   i     L; i  + '       g   i     L; i)Nz# is not a subclass of <class 'int'>z= is not a subclass of any of (<class 'int'>, <class 'float'>)1 is not a classr  r  )assertIsSubclassrJ   r  r  r^   r_   r]   r  r  r  r  r   r  s   & r   testAssertIsSubclass"Test_TestCase.testAssertIsSubclass  s   dD)dS$K0t4455!!$, 6R\\*(=>	@t4455!!$e5 6R\\*(WX	Zt4455!!!S) 6R\\*,>?t4455!!$_= 6os2<<'89t4455!!$!A 6os2<<'89# 655 655 655 65 65<   I)!I=
J1J%J8)I:	=J	J"	%J5	8K	c                   V P                  \        \        4       V P                  \        \        \        34       V P	                  V P
                  4      ;_uu_ 4       pV P                  \        \        4       R R R 4       V P                  \        XP                  4      \        : R24       V P	                  V P
                  4      ;_uu_ 4       pV P                  \        \        \        34       R R R 4       V P                  \        VP                  4      \        : R24       V P	                  V P
                  4      ;_uu_ 4       pV P                  ^\        4       R R R 4       V P                  \        VP                  4      R4       V P	                  V P
                  4      ;_uu_ 4       pV P                  \        \        R4       R R R 4       V P                  R\        VP                  4      4       V P	                  V P
                  4      ;_uu_ 4       pV P                  \        \        RR7       R R R 4       V P                  R\        VP                  4      4       R #   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL9; i  + '       g   i     L; i  + '       g   i     L; i)Nz  is a subclass of <class 'list'>r  r  r  )assertNotIsSubclassrJ   r  r  r^   r_   r  r]   r  r  r  r  s   & r   testAssertNotIsSubclass%Test_TestCase.testAssertNotIsSubclass  s     s+  U|4t4455$$T40 6R\\*(:;	=t4455$$TC;7 6R\\*(:;	=t4455$$Q, 6R\\*,>?t4455$$T4A 6os2<<'89t4455$$T4_$E 6os2<<'89# 655 655 655 65 65r  c                   \        4       p^Vn        V P                  VR4       V P                  V P                  4      ;_uu_ 4       pV P                  VR4       RRR4       V P                  \        XP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  \         R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  \        R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  VRR	4       RRR4       V P                  R	\        VP                  4      4       V P                  V P                  4      ;_uu_ 4       pV P                  VRR	R
7       RRR4       V P                  R	\        VP                  4      4       R#   + '       g   i     EL; i  + '       g   i     EL|; i  + '       g   i     EL); i  + '       g   i     L; i  + '       g   i     L; i)r	  xyNz"'List' object has no attribute 'y'spamz*type object 'List' has no attribute 'spam'nonexistentz+module 'sys' has no attribute 'nonexistent'r  r  )
rJ   r  assertHasAttrr^   r_   r]   r  r  sysr  r   r  r  s   &  r   testAssertHasAttrTest_TestCase.testAssertHasAttr  s   F1c"t4455q#& 6R\\*4	6t4455tV, 6R\\*<	>t4455sM2 6R\\*=	? t4455q#7 6os2<<'89t4455q#?; 6os2<<'89% 655 655 655
 65 65<   H *H4I8II/ H1	4I	I	I,	/I?	c                   \        4       p^Vn        V P                  VR4       V P                  V P                  4      ;_uu_ 4       pV P                  VR4       RRR4       V P                  \        XP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  \         R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  \        R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  VRR	4       RRR4       V P                  R	\        VP                  4      4       V P                  V P                  4      ;_uu_ 4       pV P                  VRR	R
7       RRR4       V P                  R	\        VP                  4      4       R#   + '       g   i     EL; i  + '       g   i     EL|; i  + '       g   i     EL); i  + '       g   i     L; i  + '       g   i     L; i)r	  r  r  Nz*'List' object has unexpected attribute 'x'r>   z4type object 'List' has unexpected attribute 'append'modulesz/module 'sys' has unexpected attribute 'modules'r  r  )
rJ   r  assertNotHasAttrr^   r_   r]   r  r  r  r  r  s   &  r   testAssertNotHasAttr"Test_TestCase.testAssertNotHasAttr/  s   Fa%t4455!!!S) 6R\\*<	>t4455!!$1 6R\\*F	Ht4455!!#y1 6R\\*A	C t4455!!!S/: 6os2<<'89t4455!!!So!> 6os2<<'89% 655 655 655
 65 65r  c                   R RRRRR/pV P                  RR4       V P                  ^. RO4       V P                  R V4       V P                  RR4       V P                  ^ . RO4       V P                  R	V4       V P                  V P                  V P                   R
R4       V P                  V P                  V P                   ^. RO4       V P                  V P                  V P                   RV4       V P                  V P                  V P                  RR4       V P                  V P                  V P                  ^. RO4       V P                  V P                  V P                  RV4       R# )monkeybananacowgrasssealfishr  abcdotterr  elephantrh  Nr.  )r  assertNotInr^   r_   )r   animalss   & r   testAssertInTest_TestCase.testAssertInG  s0   XugvvFc5!a#h(e$I&'*$//UK$//9M$//
!	# 	$//1A1A3N$//1A1A1iP$//1A1A5!	#r   c           	        R	/ / 3. . 3\        4       \        4       3\        4       \        4       3.pV F>  w  r# V P                  W#4        V P                  W#RR7        V P                  W#R4       K@  	  R. 3/ \        4       3\        ^^.4      \        ^^.4      3\        ^^.4      \        ^^.4      3\        ^^.4      \        ^^.4      3.pV F}  w  r#V P                  V P                  V P                  W#4       V P                  V P                  V P                  W#R4       V P                  V P                  V P                  W#RR7       K  	  R#   T P                   d    T P	                  R T: RT: R24        EL9i ; i  T P                   d    T P	                  R T: RT: R24        ELWi ; i  T P                   d     T P	                  R T: RT: R24        EK  i ; i)
zassertEqual(z, z) failedr   r  z) with msg= failedz) with third parameter failedNr   )r   r   )set	frozensetr]   r_   rv   r^   )r   equal_pairsr  r  unequal_pairss   &    r   testAssertEqualTest_TestCase.testAssertEqual\  s   RRik*,  DAA  &K  5 1"  u-  $ BxCE{QqE
Iqe,-1Q% #qe*-QqE
C1J') "DAd33T5E5EqLd33T5E5Eq#%d33T5E5Eq"'  )	 "% (( A		!Q?@A (( K		AqIJK (( "		a! " ""s5   E
FF8+FF+F54F58+G('G(c                   V P                  . . 4       V P                  RR4       V P                  . R4       ^ R. .p. pV P                  \        P
                  P                  V P                   W4       V P                  \        P
                  P                  V P                   \        V4      \        V4      4       V P                  \        P
                  P                  V P                  V\        V4      4       VP                  V4       V P                  W4       V P                  \        V4      \        V4      4       V P                  V\        V4      4       V P                  \        V4      V4       V P                  V P                  V P                   V\        V4      4       V P                  V P                  V P                  \        V4      V4       V P                  V P                  V P                   RV4       V P                  V P                  V P                  R\        V4      4       V P                  V P                  V P                  R\        V4      4       V P                  V P                  V P                   ^^4       V P                  V P                  V P                  ^^4       V P                  V P                  V P                  ^^4       V P                  / / 4       R^/p/ pV P                  \        P
                  P                  V P                  W44       VP                  V4       V P                  W44       ^ VR&   V P                  \        P
                  P                  V P                  W4R4       V P                  V P                  V P                  RV4       V P                  V P                  V P                  . V4       V P                  V P                  V P                  ^^4       R# )r   r  Nr  zThese are unequalr   )assertListEqualassertTupleEqualassertSequenceEqualr^   rG   rH   r_   tupleextendassertDictEqualupdate)r   r  r  rh  r(  s   &    r   testEqualityTest_TestCase.testEquality  s;   R$b"%  R(RL(++<<..	6(++<<..a%(	D(++<<22AuQx	A 	
Q"eAha1  E!H-  q1-$//1E1EU1X	'$//1F1F(A	'$//1E1EtQO$//1F1F(	$$//1I1Ia	*$//1E1Eq!L$//1F1F1M$//1I1IQ	  	R$1J(++<<..	6 	
Q"#(++<<..6I	K 	$//1E1EtQO$//1E1Er1M$//1E1Eq!Lr   c                X   V P                  V P                  R4       RRR,          ,           pRRR,          ,           pRP                  \        P                  ! \
        P                  ! V4      P                  4       \
        P                  ! V4      P                  4       4      4      p\        P                  P                  \        V4      ^,           3,          p\        V4      ^,          V n         V P                  W4       V P                  R4       V P!                  \        X4      \        V4      4       V P#                  WF4       \        V4      ^,          V n         V P                  W4       V P                  R4       V P%                  \        V4      \        V4      4       V P'                  WF4       RV n         V P                  W4       V P                  R4       V P%                  \        V4      \        V4      4       V P'                  WF4       R#   T P                   d   pTP                  ^ ,          p Rp?EL/Rp?ii ; i  T P                   d   pTP                  ^ ,          p Rp?LRp?ii ; i  T P                   d   pTP                  ^ ,          p Rp?LRp?ii ; i)	P   r  r  r  
z!assertSequenceEqual did not fail.Ni  i   )r]   maxDiffjoindifflibndiffpprintpformat
splitlinesrG   caseDIFF_OMITTEDlenr9  rv   r_   args
assertLessr  assertGreaterr+  )r   seq1seq2diffomitteder  s   &      r   testAssertSequenceEqualMaxDiff,Test_TestCase.testAssertSequenceEqualMaxDiff  s   t,S5[ S5[ yyv~~d';'F'F'H'-~~d';'F'F'HJ K --,,D	A/??4y!|	;$$T0 II9:C#d),g#4y1}	;$$T0 II9:3s8SY/&	;$$T0 II9:3s8SY/&3 $$ 	&&)C	 $$ 	&&)C	 $$ 	&&)C	sH   1H  I
 ?I; I)II
I8I33I8;J)J$$J)c                j   ^V n         V P                  RR4      p\        P                  P                  \        R4      ,          pV P                  VRV,           4       RV n         V P                  RR4      pV P                  VR4       ^V n         V P                  RR4      pV P                  VR4       R# )r	  r   barNfoobar)rC  _truncateMessagerG   rJ  rK  rL  r]   )r   messagerS  s   &  r   testTruncateMessage!Test_TestCase.testTruncateMessage  s    ''u5--,,s5z9%'/2''u5(+''u5(+r   c                   \         P                  ! R 4      pR pW!n         VP                  / ^^ /4       V P	                  R4       R#   T P
                   d'   pT P                  \        T4      R4        Rp?R# Rp?ii ; i)r]   c                     R # r   r   r  rR  s   &&r   truncate<Test_TestCase.testAssertDictEqualTruncates.<locals>.truncate      r   zassertDictEqual did not failr   N)rG   rH   rZ  r<  rv   r_   r]   r  r   r4   rb  rT  s   &   r   testAssertDictEqualTruncates*Test_TestCase.testAssertDictEqualTruncates  st      /	 (	6  aV, II45 $$ 	,SVU++	,s   A A?A::A?c                    \         P                  ! R 4      pR pW!n         VP                  RR4       V P	                  R4       R#   T P
                   d'   pT P                  \        T4      R4        Rp?R# Rp?ii ; i)r]   c                     R # r`  r   ra  s   &&r   rb  ATest_TestCase.testAssertMultiLineEqualTruncates.<locals>.truncate  rd  r   r   rX  z!assertMultiLineEqual did not failN)rG   rH   rZ  assertMultiLineEqualrv   r_   r]   r  re  s   &   r   !testAssertMultiLineEqualTruncates/Test_TestCase.testAssertMultiLineEqualTruncates  sp      /	 (	;%%eU3 II9: $$ 	,SVU++	,s   A A=A88A=c                  a aa S P                  S P                  R	4       RS n        S P                  o^ S n        S P                  VV 3R l4       R
pS P	                  S P
                  4      ;_uu_ 4       pS P                  VR,           VR,           4       RRR4       S P                  R\        XP                  4      4       S P                  VR,           VR,           4       RpR pS P                  oVS n	        S P                  VV 3R l4       VR,           VR,           rTS P	                  S P
                  4      ;_uu_ 4       pS P                  WE4       RRR4       S P                  R\        VP                  4      4       S P                  \        VP                  4      V: RV: 24       S P                  VR,           VR,           4       R#   + '       g   i     ELE; i  + '       g   i     L; i)r/  Nc                     < \        SR S 4      # _diffThresholdsetattrold_thresholdr   s   r   <lambda>=Test_TestCase.testAssertEqual_diffThreshold.<locals>.<lambda>      .> Nr   r  r  ^c                     \        R 4      h)zthis should not be raised)SystemError)r[  rR  s   &&r   explodingTruncationHTest_TestCase.testAssertEqual_diffThreshold.<locals>.explodingTruncation  s    9::r   c                     < \        SR S 4      # )rZ  rr  )old_truncater   s   r   rv  rw    s    .@, Or   z != i   xxxxxxxxxxxxxxxx@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)r]   rq  rC  
addCleanupr^   r_   r  r  r  rZ  r+  )r   sr  r|  r  r  ru  r  s   f     @@r   testAssertEqual_diffThreshold+Test_TestCase.testAssertEqual_diffThreshold  sy   ,,e4 ++"NO t4455QWa#g. 6c3r||,-S!c'* 	;,, 3OPS!c'Bt4455R$ 6c",,/0R\\*"b,ABS!c'*+ 655" 65s   5!GG&G#	&G6	c                l  a a S P                   o^ S n         S P                  VV 3R l4       RpVR,           VR,           r2S P                  S P                  4      ;_uu_ 4       pS P	                  W#4       RRR4       RpS P	                  \        XP                  4      RV: RV: R24       S P	                  VR,           VR,           4       RpVR,           V,           VR,           V,           r2S P                  S P                  4      ;_uu_ 4       pS P	                  W#4       RRR4       RpS P	                  \        VP                  4      RV: RV: R	V: RV: R2	4       RpVR,           V,           VR,           V,           r2S P                  S P                  4      ;_uu_ 4       pS P	                  W#4       RRR4       R
pRpS P	                  \        VP                  4      RV: RV: R	V: RV: R2	4       R#   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     Ls; i)r   c                     < \        SR S 4      # rp  rr  rt  s   r   rv  7Test_TestCase.testAssertEqual_shorten.<locals>.<lambda>+  rx  r   r  r  N'za' != 'zb'zxxxx[85 chars]xxxxxxxxxxxz' != 'zxxxx[91 chars]xxxxxdxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxzKxxxx[35 chars]xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyydyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyz6yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy[56 chars]yyyy)rq  r  r^   r_   r]   r  r  )	r   r  r  r  r  rh  pr(  ru  s	   f       @r   testAssertEqual_shorten%Test_TestCase.testAssertEqual_shorten'  s   ++NOS!c'Bt4455R$ 6'R\\*1,EFS!c'*S1a#gkBt4455R$ 6'R\\*Aq!Q,OPS1a#gkBt4455R$ 6!'R\\*Aq!Q,OP' 655 65 65s$   "G<H&H#<H	H 	#H3	c                   \        4       pV P                  . RO. RO4       V P                  . RO. RO4       V P                  W^^^.V^^V^34       V P                  . RO. RO4       V P                  V P                  V P                  ^^.^.^d,          ,           ^.^d,          ^^.,           4       V P                  V P                  V P                  . RO. RO4       V P                  V P                  V P                  ^
.^
^.4       V P                  V P                  V P                  ^
^.^
.4       V P                  V P                  V P                  . RO^
^.4       V P                  ^^.^^.^ .R^^.^^..4       V P                  \	        ^^. ^^.4      \	        ^^. ^^.4      4       V P                  V P                  V P                  . \
        R^RR\        4       .4       V P                  R^/R^/.R^/R^/.4       V P                  ^R\
        . .\
        . R^.4       V P                  V P                  V P                  . \
        . R^RR\        4       .4       V P                  V P                  V P                  ^..^..4       V P                  V P                  V P                  . RO^^.4       V P                  V P                  V P                  . RO. RO4       V P                  V P                  V P                  ^R^/RR.R^/RR.4       ^^0^^0.pVRRR1,          pV P                  W4       \        \        P                  P                  R	R
4      4      p0 RmpV P                  W44       \        P                  P                  . .. 4      pV P                  V^^ . 3.4       \        \        P                  P                  R	R
4      4      p0 RmpV P                  W44       R# )r	  r  TFr  y              @y               @r  Naaabccdabbbccer.  )r0  r/  r	  )r   rX  baz)rX  r  r   )r	  2r  r  )r  r  Tr  )r  r  Tr	  )
      r  )r	  r	  r/  )r	  r	  r  r  r  )r  r  Tr  >   r   r	  rT  r	  r   r(  r	  r0  r  r0  r	  r  )r  assertCountEqualr^   r_   iterdivmodr1  r0  rG   util_count_diff_all_purposer]   _count_diff_hashable)r   r  r  diffsr   s   &    r   testAssertCountEqual"Test_TestCase.testAssertCountEqualD  s   Hi335JKqQ1o1aA?02GH$//1F1Fa&A39,qcCi1a&.@	B$//1F1F,.A	C$//1F1F$R	*$//1F1Fr(RD	*$//1F1F&R	2 	1v1vq1EAq6Aq63JKdAq"a#34"Aq"a#34	6 	$//1F1FvsAr2y{C	E 	Qx#q2c1XQx4HIq#vr2VRa4HI$//1F1Fvr32r35A	C$//1F1F3%1#	( 	$//1F1F#aV	-$//1F1F/1F	H$//1F1FsAhd3sAhd5K	M
 UQqENddGa# HMM99)YOP?)55rdB?!Q-HMM66y)LM?)r   c                   \        4       p\        4       pV P                  W4       V P                  V P                  V P                  R V4       V P                  V P                  V P                  . V4       V P                  V P                  V P                  VR 4       V P                  V P                  V P                  V. 4       \        R.4      p\        4       pV P                  V P                  V P                  W4       \        R.4      p\        R.4      pV P                  W4       \        R.4      p\        RR.4      pV P                  V P                  V P                  W4       \        R.4      p\	        RR.4      pV P                  V P                  V P                  W4       \        RR.4      p\	        RR.4      pV P                  W4       \        4       pRpV P                  V P                  V P                  W4       V P                  V P                  V P                  W!4       \        RR.4      p\        R.4      pV P                  V P                  V P                  W4       R # )Nr  r  r   )r   r	  r1  )      )r0  assertSetEqualr^   r_   r1  )r   set1set2s   &  r   testAssertSetEqual Test_TestCase.testAssertSetEqual  s
   uuD'$//1D1DdDQ$//1D1Db$O$//1D1DdDQ$//1D1DdBOC5zu$//1D1DdQC5zC5zD'C5zC:$//1D1DdQC5z#s$$//1D1DdQC:#s$D'u$//1D1DdQ$//1D1DdQ FF#$F8}$//1D1DdQr   c                
   V P                  ^^4       V P                  ^^4       V P                  ^^4       V P                  ^^4       V P                  ^^4       V P                  ^^4       V P	                  V P
                  V P                   ^^4       V P	                  V P
                  V P                   ^^4       V P	                  V P
                  V P                  ^^4       V P	                  V P
                  V P                  ^^4       V P	                  V P
                  V P                  ^^4       V P	                  V P
                  V P                  ^^4       V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P	                  V P
                  V P                   RR4       V P	                  V P
                  V P                   RR4       V P	                  V P
                  V P                  RR4       V P	                  V P
                  V P                  RR4       V P	                  V P
                  V P                  RR4       V P	                  V P
                  V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P	                  V P
                  V P                   RR4       V P	                  V P
                  V P                   RR4       V P	                  V P
                  V P                  RR4       V P	                  V P
                  V P                  RR4       V P	                  V P
                  V P                  RR4       V P	                  V P
                  V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P                  RR4       V P	                  V P
                  V P                   RR4       V P	                  V P
                  V P                   RR4       V P	                  V P
                  V P                  RR4       V P	                  V P
                  V P                  RR4       V P	                  V P
                  V P                  RR4       V P	                  V P
                  V P                  RR4       R# )r/  g?g      ?bugants   bugs   antN)rO  assertGreaterEqualrN  assertLessEqualr^   r_   r   s   &r   testInequalityTest_TestCase.testInequality  st   1a 1%1%1Q"Q"$//1C1CQJ$//1C1CQJ$//1H1H!QO$//!QG$//!QG$//1E1Eq!L 	3$S)S)S!S#&S#&$//1C1CS#N$//1C1CS#N$//1H1H#sS$//#sK$//#sK$//1E1EsCP 	5%(u-u-u%UE*UE*$//1C1CUER$//1C1CUER$//1H1H%QVW$//%O$//%O$//1E1EueT 	66*//'VV,VV,$//1C1CVVT$//1C1CVVT$//1H1H& 	"$//&&Q$//&&Q$//1E1EvvVr   c                $   R pRpRpRV n          V P                  W4       V P                  V P                   R24       R#   T P                   d?   p\	        T4      P                  R^4      ^,          pT P                  Y54        Rp?R# Rp?ii ; i)zxhttp://www.python.org/doc/2.3/lib/module-unittest.html
test case
    A test case is the smallest unit of testing. [...]
zhttp://www.python.org/doc/2.4.1/lib/module-unittest.html
test case
    A test case is the smallest unit of testing. [...] You may provide your
    own implementation that does not subclass from TestCase, of course.
a  - http://www.python.org/doc/2.3/lib/module-unittest.html
?                             ^
+ http://www.python.org/doc/2.4.1/lib/module-unittest.html
?                             ^^^
  test case
-     A test case is the smallest unit of testing. [...]
+     A test case is the smallest unit of testing. [...] You may provide your
?                                                       +++++++++++++++++++++
+     own implementation that does not subclass from TestCase, of course.
N not raisedrB  )rC  rk  rv   r_   r  splitr]   r   sample_textrevised_sample_textsample_text_errorrT  errors   &     r   testAssertMultiLineEqual&Test_TestCase.testAssertMultiLineEqual  s    

 	=%%kG II../{;< $$ 	7FLLq)!,E.66	7s   A   B3B

Bc                   R pRpRp V P                  W4       V P                  V P                   R24       R#   T P                   d?   p\        T4      P	                  R^4      ^,          pT P                  Y54        Rp?R# Rp?ii ; i)zladen swallows fly slowlyunladen swallows fly quicklyzr- laden swallows fly slowly
?                    ^^^^
+ unladen swallows fly quickly
? ++                   ^^^^^
r  rB  Nr]   rv   r_   r  r  r  s   &     r   testAssertEqualSingleLine'Test_TestCase.testAssertEqualSingleLine  s    1<	=[> II../{;< $$ 	7FLLq)!,E.66	7   9 B
3BBc                   RpRpRp V P                  W4       V P                  V P                   R24       R#   T P                   d?   p\        T4      P	                  R^4      ^,          pT P                  Y54        Rp?R# Rp?ii ; i)zVerify when there is an empty string involved, the diff output
does not treat the empty string as a single empty line. It should
instead be handled as a non-line.
 r  z+ unladen swallows fly quickly
r  rB  Nr  r  s   &     r   testAssertEqualwithEmptyString,Test_TestCase.testAssertEqualwithEmptyString  s    
 <	=[> II../{;< $$ 	7FLLq)!,E.66	7r  c                   RpRpRp V P                  W4       V P                  V P                   R24       R#   T P                   d?   p\        T4      P	                  R^4      ^,          pT P                  Y54        Rp?R# Rp?ii ; i)zVerifying format of diff output from assertEqual involving strings
with multiple lines, but missing the terminating newline on both.
zladen swallows
fly sloelyladen swallows
fly slowlyzA  laden swallows
- fly sloely
?        ^
+ fly slowly
?        ^
r  rB  Nr  r  s   &     r   4testAssertEqualMultipleLinesMissingNewlineTerminatorBTest_TestCase.testAssertEqualMultipleLinesMissingNewlineTerminator*  s     3:	=[> II../{;< $$ 	7FLLq)!,E.66	7r  c                   RpRpRp V P                  W4       V P                  V P                   R24       R#   T P                   d?   p\        T4      P	                  R^4      ^,          pT P                  Y54        Rp?R# Rp?ii ; i)zVerifying format of diff output from assertEqual involving strings
with multiple lines and mismatched newlines. The output should
include a - on it's own line to indicate the newline difference
between the two strings
zladen swallows
fly sloely
r  zD  laden swallows
- fly sloely
?        ^
+ fly slowly
?        ^
- 
r  rB  Nr  r  s   &     r   9testAssertEqualMultipleLinesMismatchedNewlinesTerminatorsGTest_TestCase.testAssertEqualMultipleLinesMismatchedNewlinesTerminators@  s     5:	=[> II../{;< $$ 	7FLLq)!,E.66	7r  c           
       a  \         P                  P                  '       d   V 3R  lpMR pV! 4       ;_uu_ 4        S P                  S P                  4      ;_uu_ 4        S P                  RR4       RRR4       RRR4       V! 4       ;_uu_ 4        S P                  RR4       RRR4       ^ R.p^ R.pV! 4       ;_uu_ 4        S P                  S P                  4      ;_uu_ 4        S P                  W#4       RRR4       RRR4       V! 4       ;_uu_ 4        S P                  S P                  4      ;_uu_ 4        S P                  \        V4      \        V4      4       RRR4       RRR4       V! 4       ;_uu_ 4        S P                  S P                  4      ;_uu_ 4        S P                  V\        V4      4       RRR4       RRR4       V! 4       ;_uu_ 4        S P                  S P                  4      ;_uu_ 4        S P                  \        V4      V4       RRR4       RRR4       V! 4       ;_uu_ 4        S P                  S P                  4      ;_uu_ 4        S P                  RR4       RRR4       RRR4       V! 4       ;_uu_ 4        S P                  S P                  4      ;_uu_ 4        S P                  \        V4      \        V4      4       RRR4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  V\        V4      4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  \        V4      V4       RRR4       ^ R.p^ .pS P                  S P                  4      ;_uu_ 4        S P                  W#4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  \        V4      \        V4      4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  V\        V4      4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  \        V4      V4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  \        V4      \        V4      4       RRR4       ^ .p^ R.pS P                  S P                  4      ;_uu_ 4        S P                  W#4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  \        V4      \        V4      4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  V\        V4      4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  \        V4      V4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  \        V4      \        V4      4       RRR4       V! 4       ;_uu_ 4        S P                  S P                  4      ;_uu_ 4        S P                  R^ /R^ /4       RRR4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  / R^ /4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  R^ // 4       RRR4       S P                  S P                  4      ;_uu_ 4        S P                  RR.. RO4       RRR4       V! 4       ;_uu_ 4        S P                  RR.RR.4       RRR4       V! 4       ;_uu_ 4        S P                  S P                  4      ;_uu_ 4        S P                  RR.RR.4       RRR4       RRR4       V! 4       ;_uu_ 4        S P                  S P                  4      ;_uu_ 4        S P                  RR. .RR. .4       RRR4       RRR4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELm; i  + '       g   i     ELy; i  + '       g   i     EL6; i  + '       g   i     ELB; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELj; i  + '       g   i     EL7; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELe; i  + '       g   i     EL); i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELW; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELc; i  + '       g   i     ELI; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     R# ; i)c                  0   < S P                  \        R 4      # )z#Comparison between bytes and string)assertWarnsRegexBytesWarningr   s   r   bytes_warning=Test_TestCase.testEqualityBytesWarning.<locals>.bytes_warning[  s    ,,\AC Cr   c                  ,    \         P                  ! 4       # r   )
contextlib	ExitStackr   r   r   r  r  _  s    !++--r   r     aN)r  r  r  )r  flagsr  r^   r_   r]   assertNotEqualr7  r8  r:  r9  r  r0  r<  r  )r   r  r  r  s   f   r   testEqualityBytesWarning&Test_TestCase.testEqualityBytesWarningY  s   99"""C. __d//0E0EFFS$' G___T*  HI__d//0E0EFF  & G___d//0E0EFF!!%(E!H5 G___d//0E0EFF$$Qa1 G___d//0E0EFF$$U1Xq1 G___d//0E0EFF$$S$/ G___d//0E0EFFAA/ G_ t4455  E!H- 6t4455!!%(A. 6 ICt4455  & 6t4455!!%(E!H5 6t4455$$Qa1 6t4455$$U1Xq1 6t4455AA/ 6 CIt4455  & 6t4455!!%(E!H5 6t4455$$Qa1 6t4455$$U1Xq1 6t4455AA/ 6 __d//0E0EFF  #qD!95 G_t4455  dAY/ 6t4455  $B/ 6 t4455!!4,0BC 6__!!3+T{; __d//0E0EFF!!3*tTl; G___d//0E0EFF!!3R.4r2BC G__A GFF_____
 GFF___FFF___FFF___FFF___FFF___FFF___ 655555
 655555555555555
 655555555555555 GFF___555555 655__FFF___FFF___s3  $a5a!	2a5b	$b1'b	9b1$c<%c	!c $d$c-	 d$d)d	d)>$e"d=	5e$e98%e%	e9ff!%f5"%g	2g9g1 %hh%h-$i+i2%i).$ji=	)jj%j9k
k!8$l	k5	3l	$l16l	l1!a2,	a55b		b	b.(	b11c	c	cc*	-c>8	dd	d& 	d))d:	=e	ee"	%e60	e99f
	f	!f2	5g		g	g.	1h	h	h*	-h>	i	i&	)i:	=j	jj"	%j6	9k
	k	!k2	5l 	l		l	l.(	l11m	c                    V P                  R 4       V P                  V P                  V P                   R4       V P                  R4       V P                  V P                  V P                  R 4       R # )NFzDjZoPloGears on Rails)r  r^   r_   assertIsNotNoner   s   &r   testAssertIsNoneTest_TestCase.testAssertIsNone  s[    $$//1B1BEJ45$//1E1EtLr   c                z    V P                  R R4       V P                  V P                  V P                   RR4       R# )
asdfabasdfzab+saaasaaaaN)assertRegexr^   r_   r   s   &r   testAssertRegexTest_TestCase.testAssertRegex  s5    v.$//1A1A!7	,r   c                  a  ! R  R\         4      oV3R lpV P                  SV4       V P                  \        S3V4       V P                  \        \        R^R7       V P                  V P                  4      ;_uu_ 4        V P                  SR 4       RRR4       V P                  \
        4      ;_uu_ 4        V P                  SR4       RRR4       V P                  S4      ;_uu_ 4        V P                  \        V4       RRR4       R#   + '       g   i     L; i  + '       g   i     L]; i  + '       g   i     R# ; i)c                       ] tR tRtRtR# )=Test_TestCase.testAssertRaisesCallable.<locals>.ExceptionMocki  r   NrK   r   r   r   ExceptionMockr        r   r  c                     < S ! R 4      h	We expectr   r  s   r   Stub4Test_TestCase.testAssertRaisesCallable.<locals>.Stub      ,,r   19basec                      ^ # r   r   r   r   r   rv  8Test_TestCase.testAssertRaisesCallable.<locals>.<lambda>      Qr   N)	Exceptionr^   rw   r  r_   	TypeErrorr   r  r  s   & @r   testAssertRaisesCallable&Test_TestCase.testAssertRaisesCallable  s    	I 		--.:}5t<*c4a8t4455mY7 6 y))mT2 * }--j$/ .- 65 *) .--s$   D:D".D5D	"D2	5E	c           	       a  ! R  R\         4      oV3R lpV P                  S4      ;_uu_ 4        V! 4        RRR4       V P                  \        S34      ;_uu_ 4       pV! 4        RRR4       V P                  XP                  S4       V P                  VP                  P                  ^ ,          R4       V P                  \        4      ;_uu_ 4        \        R^R7       RRR4       V P                  V P                  4      ;_uu_ 4        V P                  S4      ;_uu_ 4         RRR4       RRR4       V P                  V P                  R4      ;_uu_ 4        V P                  SRR7      ;_uu_ 4         RRR4       RRR4       V P                  \        R4      ;_uu_ 4        V P                  S^*R	7      ;_uu_ 4         RRR4       RRR4       V P                  S4      ;_uu_ 4        V P                  \        V4       RRR4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL`; i  + '       g   i     EL-; i  + '       g   i     EL9; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)
c                       ] tR tRtRtR# )<Test_TestCase.testAssertRaisesContext.<locals>.ExceptionMocki  r   NrK   r   r   r   r  r    r  r   r  c                     < S ! R 4      hr  r   r  s   r   r  3Test_TestCase.testAssertRaisesContext.<locals>.Stub  r  r   Nr  r  r  rY  r  rY  )r  r^   rw   r  r  r]   rM  r  r_   assertRaisesRegexr  )r   r  r  r  s   &  @r   testAssertRaisesContext%Test_TestCase.testAssertRaisesContext  s   	I 		-}--F . 
M:;;rF < 	bllM:**1-{;z**1 + t4455""=11 2 6 ##D$9$98DD""=h"?? @ E ##Ix88""="<< = 9 }--j$/ .-1 .-- <;; +** 211 655
 @?? EDD
 =< 98 .--s   HH&H:I"(I	*I"J
:I6	<J
*J1J	J11KH#	&H7	:I	I	I""I3	6J	J

J	J.)J11K	K	c                   V P                  \        4      ;_uu_ 4        V P                  4        R R R 4       V P                  \        4      ;_uu_ 4        V P                  ^4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        ^34       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        \        34       R R R 4       R #   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R # ; ir   )r^   r  r  rw   r   s   &r   testAssertRaisesNoExceptionType-Test_TestCase.testAssertRaisesNoExceptionType  s    y)) *y))a  *y))f% *y))z1o. *y))z623 *) *)))))))))))s;   D)D=EE#E6)D:	=E	E 	#E3	6F	c                    R  p\         P                  ! V4      pV P                  \        V4       V P	                  V\         P                  ! V4      4       R# )c                  :     \         h  \          d    \         hi ; ir   )rw   r   r   r   func4Test_TestCase.testAssertRaisesRefcount.<locals>.func  s"    !   !  !s    N)r  getrefcountr^   rw   r]   )r   r  refcounts   &  r   testAssertRaisesRefcount&Test_TestCase.testAssertRaisesRefcount  s@    	! ??4(*d+3??4#89r   c                @  a  ! R  R\         4      oV3R lpV P                  S\        P                  ! R4      V4       V P                  SRV4       V P	                  \
        4      ;_uu_ 4        V P                  SRR4       RRR4       R#   + '       g   i     R# ; i)c                       ] tR tRtRtR# ):Test_TestCase.testAssertRaisesRegex.<locals>.ExceptionMocki  r   NrK   r   r   r   r  r    r  r   r  c                     < S ! R 4      hr  r   r  s   r   r  1Test_TestCase.testAssertRaisesRegex.<locals>.Stub  r  r   zexpect$N)r  r  recompiler^   r  r  s   & @r   testAssertRaisesRegex#Test_TestCase.testAssertRaisesRegex  su    	I 		- 	}bjj.CTJ}i>y))""=)TB *)))s   .BB	c           	        V P                  V P                  R V P                   \        \        P                  ! R4      R 4       V P                  V P                  R V P                   \        RR 4       V P                  V P                  R4      ;_uu_ 4        V P                  \        RRR7      ;_uu_ 4         RRR4       RRR4       V P                  \
        R4      ;_uu_ 4        V P                  \        R^*R7      ;_uu_ 4         RRR4       RRR4       R#   + '       g   i     Lk; i  + '       g   i     Lv; i  + '       g   i     L@; i  + '       g   i     R# ; i)	z"^Exception not raised by <lambda>$r  c                      R # r   r   r   r   r   rv  8Test_TestCase.testAssertNotRaisesRegex.<locals>.<lambda>      r   c                      R # r   r   r   r   r   rv  r    r   r   rY  expectr  Nr  )r  r_   r  r  r  r  r   s   &r   testAssertNotRaisesRegex&Test_TestCase.testAssertNotRaisesRegex	  s
   %%'K&&	2::c?	 	%%'K&&	3	
 ##D$9$98DD''	8'JJ K E ##Ix88''	8B'GG H 98 KJ ED
 HG 988sH   !D08D	:D0(!E	E	ED-(D00E 	EEE'	c                j     ! R  R\         4      pV P                  \        V P                  VR 4       R# )c                       ] tR tRtRtR# )>Test_TestCase.testAssertRaisesRegexInvalidRegex.<locals>.MyExci  r   NrK   r   r   r   MyExcr'    r  r   r(  c                      R # Tr   r   r   r   rv  ATest_TestCase.testAssertRaisesRegexInvalidRegex.<locals>.<lambda>      Dr   N)r  r^   r  r  )r   r(  s   & r   !testAssertRaisesRegexInvalidRegex/Test_TestCase.testAssertRaisesRegexInvalidRegex  s(    	I 	)T%;%;ULQr   c                j     ! R  R\         4      pV P                  \        V P                  VR 4       R# )c                       ] tR tRtRtR# )>Test_TestCase.testAssertWarnsRegexInvalidRegex.<locals>.MyWarni#  r   NrK   r   r   r   MyWarnr1  #  r  r   r2  c                      R # r*  r   r   r   r   rv  @Test_TestCase.testAssertWarnsRegexInvalidRegex.<locals>.<lambda>%  r,  r   N)Warningr^   r  r  )r   r2  s   & r    testAssertWarnsRegexInvalidRegex.Test_TestCase.testAssertWarnsRegexInvalidRegex!  s(    	W 	)T%:%:FLQr   c                H    ! R  R\         P                  4      pV! R4      \        P                  R&    V P	                  \
        \        P                  R4       \        P                  R \        P                  R R#   \        P                  R \        P                  R i ; i)c                   0   a  ] tR tRt o ]R 4       tRtV tR# ):Test_TestCase.testAssertWarnsModifySysModules.<locals>.Fooi)  c                ,    R \         P                  R&   R# )rX  @bar@N)r  r  r   s   &r   __warningregistry__NTest_TestCase.testAssertWarnsModifySysModules.<locals>.Foo.__warningregistry__*  s    ',G$r   r   N)r!   r"   r#   r$   propertyr=  r%   r&   r'   s   @r   r)   r:  )  s     - -r   r)   r   z@foo@r   r<  N)types
ModuleTyper  r  r   UserWarningr!  warnr   s   & r   testAssertWarnsModifySysModules-Test_TestCase.testAssertWarnsModifySysModules'  sw    	-%"" 	-
  #5zG	%[(--DG$G$ G$G$s   %A= =$B!c           	         R  pV P                  V P                  RV P                   \        RV4       V P                  V P                  RV P                   \        \        P                  ! R4      V4       R# )c                      \        R 4      h)
Unexpected)r  r   r   r   r  9Test_TestCase.testAssertRaisesRegexMismatch.<locals>.Stub6  s    L))r   z*"\^Expected\$" does not match "Unexpected"z
^Expected$N)r  r_   r  r  r  )r   r  s   & r   testAssertRaisesRegexMismatch+Test_TestCase.testAssertRaisesRegexMismatch5  sh    	* 	%%=&&	<		
 	%%=&&	

<($		0r   c                6  a  ! R  R\         4      oV3R lpRpV P                  S4      pV;_uu_ 4        V! V4       RRR4       VP                  pV P                  VS4       V P	                  VP
                  ^ ,          V4       R#   + '       g   i     LS; i)c                       ] tR tRtRtR# )=Test_TestCase.testAssertRaisesExcValue.<locals>.ExceptionMockiE  r   NrK   r   r   r   r  rN  E  r  r   r  c                    < S! V 4      hr   r   )r   r  s   &r   r  4Test_TestCase.testAssertRaisesExcValue.<locals>.StubH  s    $$r   zparticular valueN)r  r^   r  r  r]   rM  )r   r  vctxrT  r  s   &    @r   testAssertRaisesExcValue&Test_TestCase.testAssertRaisesExcValueD  ss    	I 		%.SG MMa/A&	 Ss   	BB	c                   V P                  \        4      ;_uu_ 4        V P                  4        R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  ^R4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        R4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        ^3R4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        \        3R4       R R R 4       R #   + '       g   i     ELB; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R # ; iNr"  )r^   r  r  rw   r  r   s   &r   $testAssertRaisesRegexNoExceptionType2Test_TestCase.testAssertRaisesRegexNoExceptionTypeS  s!   y))""$ *y))"":. *y))""1h/ *y))""684 *y))""J?H= *y))""J#7B *) *))))))))))))))sG   E(E<FF#F6G	(E9	<F	F 	#F3	6G		G	c           	        R  pV P                  \        V4       V P                  \        V4       V P                  \        \        3V4       V P                  \        \        P                  R\        R7       V P                  V P                  4      ;_uu_ 4        V P                  \        R 4       RRR4       V P                  \        4      ;_uu_ 4        V P                  \        R4       RRR4       \        P                  ! 4       ;_uu_ 4        \        P                  ! R\        4       V P                  V P                  4      ;_uu_ 4        V P                  \        V4       RRR4       RRR4       \        P                  ! 4       ;_uu_ 4        \        P                  ! R\        4       V P                  \        4      ;_uu_ 4        V P                  \        V4       RRR4       RRR4       R#   + '       g   i     ELO; i  + '       g   i     EL'; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lh; i  + '       g   i     R# ; i)c                  <    \         P                  ! R \        4       R# r  r!  rC  r   r   r   r   _runtime_warn<Test_TestCase.testAssertWarnsCallable.<locals>._runtime_warnb      MM%0r   r   categoryc                      ^ # r  r   r   r   r   rv  7Test_TestCase.testAssertWarnsCallable.<locals>.<lambda>n  r  r   Ndefaultr  )
r   r   r  r!  rC  r^   r_   r  catch_warningssimplefilterr   r\  s   & r   testAssertWarnsCallable%Test_TestCase.testAssertWarnsCallablea  s   	1 	77,n=}M! 	 	H t4455^Y7 6 y))^T2 * $$&&!!)^<""4#8#899  !3]C : ' $$&&!!'>:"">22  !3]C 3 '& 655 *)) :9 '& 32 '&&s`   G8H?H3H 	)H39II	&I8H		H	 H0+H33I	III*	c                	   R  p\         P                  ! V4      ^,          pV P                  \        4      ;_uu_ 4       pV! 4        RRR4       V P                  \        \        34      ;_uu_ 4       pV! 4        RRR4       V P                  XP                  \        4       V P                  VP                  P                  ^ ,          R4       V P                  RVP                  4       V P                  VP                  V^,           4       V P                  \        4      ;_uu_ 4        V! 4        V! 4        RRR4       V P                  \        4      ;_uu_ 4        \        P                  ! R\        R7       RRR4       V P                  V P                  4      ;_uu_ 4        V P                  \        4      ;_uu_ 4         RRR4       RRR4       V P!                  V P                  R4      ;_uu_ 4        V P                  \        RR7      ;_uu_ 4         RRR4       RRR4       V P!                  \"        R4      ;_uu_ 4        V P                  \        ^*R7      ;_uu_ 4         RRR4       RRR4       \        P$                  ! 4       ;_uu_ 4        \        P&                  ! R\        4       V P                  V P                  4      ;_uu_ 4        V P                  \        4      ;_uu_ 4        V! 4        RRR4       RRR4       RRR4       \        P$                  ! 4       ;_uu_ 4        \        P&                  ! R	\        4       V P                  \        4      ;_uu_ 4        V P                  \        4      ;_uu_ 4        V! 4        RRR4       RRR4       RRR4       R#   + '       g   i     ELo; i  + '       g   i     ELP; i  + '       g   i     EL; i  + '       g   i     ELv; i  + '       g   i     EL?; i  + '       g   i     ELK; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL'; i  + '       g   i     EL3; i  + '       g   i     R# ; i)
c                  <    \         P                  ! R \        4       R# r  r[  r   r   r   r\  ;Test_TestCase.testAssertWarnsContext.<locals>._runtime_warn  r^  r   Nr   test_case.pyr_  rY  r  r  rc  r  )inspectgetsourcelinesr   r   r  r  r  r]   rM  r  r  linenor!  rC  r^   r_   r  r  rd  re  r   r\  _runtime_warn_linenor  s   &   r   testAssertWarnsContext$Test_TestCase.testAssertWarnsContext~  s1   	1&55mDQGn--O . 1>BCCrO D 	bjj.9+U3nbkk2$81$<=n--OO . n--MM%.9 . t4455!!.11 2 6 ##D$9$98DD!!.h!?? @ E ##Ix88!!.!<< = 9 $$&&!!)^<""4#8#899%%&899!O : : ' $$&&!!'>:"">22%%&899!O : 3 '&I .-- DCC .-- .-- 211 655
 @?? EDD
 =<< 988 :99 :99 '&& :99 322 '&&s  N,1O *OO(&PO<	P: P8P$	P8
 Q *Q	,Q ?RR	6Q4>R	R39S,S	
R0S	S,N=	 O	O%	(O9	<P	PP!	$P5/	P88Q		Q	Q  Q1	4R?	R	R	RR-	0S;	S	S	SS)	c                   V P                  \        4      ;_uu_ 4        V P                  4        R R R 4       V P                  \        4      ;_uu_ 4        V P                  ^4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        ^34       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        \        34       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        \
        34       R R R 4       R #   + '       g   i     ELD; i  + '       g   i     EL!; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R # ; ir   )r^   r  r   r  rB  r  r   s   &r   testAssertWarnsNoExceptionType,Test_TestCase.testAssertWarnsNoExceptionType  s   y)) *y))Q *y))V$ *y))k1-. *y))k623 *y))k956 *) *))))))))))))))sG   E*E>FF%F8G*E;	>F	F"	%F5	8G	G	c           
        R  pV P                  \        RVR4       V P                  V P                  4      ;_uu_ 4        V P                  \        RR 4       RRR4       V P                  \        4      ;_uu_ 4        V P                  \        RR4       RRR4       \
        P                  ! 4       ;_uu_ 4        \
        P                  ! R\        4       V P                  V P                  4      ;_uu_ 4        V P                  \        RVR4       RRR4       RRR4       V P                  V P                  4      ;_uu_ 4        V P                  \        RVR4       RRR4       \
        P                  ! 4       ;_uu_ 4        \
        P                  ! R\        4       V P                  \        V P                  34      ;_uu_ 4        V P                  \        RVR4       RRR4       RRR4       R#   + '       g   i     EL; i  + '       g   i     EL{; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L}; i  + '       g   i     R# ; i)c                 <    \         P                  ! V \        4       R # r   r[  r  s   &r   r\  ATest_TestCase.testAssertWarnsRegexCallable.<locals>._runtime_warn      MM#~.r   o+fooxc                      ^ # r  r   r   r   r   rv  <Test_TestCase.testAssertWarnsRegexCallable.<locals>.<lambda>  s    !r   Nrc  barzr  )	r  r   r^   r_   r  r!  rd  re  r  rf  s   & r   testAssertWarnsRegexCallable*Test_TestCase.testAssertWarnsRegexCallable  s   	/nd+V	5 t4455!!.$"+- 6 y))!!.$= * $$&&!!)^<""4#8#899%%&8$&3V= : ' t4455!!.$"/9 6 $$&&!!'>:""ND4I4I#JKK%%nd&3V= L '&+ 655 *)) :99 '&& 65 LK '&&sl   G3=H:?H/9H	H/IAI)I	!I)3H	H	H,&	H//I 	I	I&!I))I:	c                >	   R  p\         P                  ! V4      ^,          pV P                  \        R4      ;_uu_ 4       pV! R4       RRR4       V P	                  XP
                  \        4       V P                  VP
                  P                  ^ ,          R4       V P                  RVP                  4       V P                  VP                  V^,           4       V P                  V P                  4      ;_uu_ 4        V P                  \        R4      ;_uu_ 4         RRR4       RRR4       V P                  V P                  R4      ;_uu_ 4        V P                  \        RRR7      ;_uu_ 4         RRR4       RRR4       V P                  \        R4      ;_uu_ 4        V P                  \        R^*R7      ;_uu_ 4         RRR4       RRR4       \        P                   ! 4       ;_uu_ 4        \        P"                  ! R\        4       V P                  V P                  4      ;_uu_ 4        V P                  \$        R4      ;_uu_ 4        V! R4       RRR4       RRR4       RRR4       V P                  V P                  4      ;_uu_ 4        V P                  \        R4      ;_uu_ 4        V! R	4       RRR4       RRR4       \        P                   ! 4       ;_uu_ 4        \        P"                  ! R
\        4       V P                  \        V P                  34      ;_uu_ 4        V P                  \        R4      ;_uu_ 4        V! R	4       RRR4       RRR4       RRR4       R#   + '       g   i     EL4; i  + '       g   i     ELp; i  + '       g   i     EL|; i  + '       g   i     ELA; i  + '       g   i     ELM; i  + '       g   i     EL; i  + '       g   i     EL$; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     R# ; i)c                 <    \         P                  ! V \        4       R # r   r[  r  s   &r   r\  @Test_TestCase.testAssertWarnsRegexContext.<locals>._runtime_warn  rz  r   r{  r|  Nrl  rY  r  r  rc  r  r  )rm  rn  r  r   r  r  r]   rM  r  r  ro  r^   r_   r  r  r!  rd  re  r  rp  s   &   r   testAssertWarnsRegexContext)Test_TestCase.testAssertWarnsRegexContext  s   	/&55mDQG"">488B&! 9bjj.9+V4nbkk2$81$<=t4455&&~t<< = 6 ##D$9$98DD&&~t&JJ K E ##Ix88&&~tB&GG H 9 $$&&!!)^<""4#8#899**+=tDD!&) E : ' t4455&&~t<<f% = 6 $$&&!!'>:""ND4I4I#JKK**>4@@!&) A L '&C 988 =<< 655
 KJJ EDD
 HGG 988 EDD :99 '&& =<< 655 A@@ LKK '&&s  	M3?NN	 N!O5N/	7O%!O+O	O+5?P'4P		O?P	$P'Q6	P;	?Q,AR1Q7		Q#Q7	!R3N	N	NN,	/O :	OO	O("	O++O<	?P
	P	P$	P''P8	;Q	QQ 	#Q4.	Q7	7R	RR	c                h   V P                  \        4      ;_uu_ 4        V P                  4        R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  ^R4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        R4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        ^3R4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        \        3R4       R R R 4       V P                  \        4      ;_uu_ 4        V P                  \        \
        3R4       R R R 4       R #   + '       g   i     EL; i  + '       g   i     EL]; i  + '       g   i     EL9; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R # ; irV  )r^   r  r  rB  r  r  r   s   &r   #testAssertWarnsRegexNoExceptionType1Test_TestCase.testAssertWarnsRegexNoExceptionType	  sZ   y))!!# *y))!!+. *y))!!!X. *y))!!&(3 *y))!!;"2H= *y))!!;"7B *y))!!;	":HE *) *))))))))))))))))))sS   F*F>GG&G:HH *F;	>G	G#	&G7	:H
	H	 H1	c              #     "   \        4       ;_uu_ 4       pR x  R R R 4       V P                  XP                  4       R4       R #   + '       g   i     L2; i5i)Nr  )r   r]   getvalue)r   bufs   & r   assertNoStderrTest_TestCase.assertNoStderr  s6     # , s   AA*AA	Ac                   V P                  \        V4      \        V4      4       \        W4       FY  w  r4V P                  V\        P
                  4       VP                  4        F   w  rVV P                  \        W54      V4       K"  	  K[  	  R # r   )r]   rL  zipr  logging	LogRecorditemsgetattr)r   recordsmatchesrecmatchkrQ  s   &&&    r   assertLogRecordsTest_TestCase.assertLogRecords  sg    Ws7|4g/JC!!#w'8'89  !4 & 0r   c           	        V P                  4       ;_uu_ 4        V P                  4       ;_uu_ 4       p\        P                  R 4       \        P                  R4       RRR4       V P                  XP                  R.4       V P                  VP                  RR/.4       RRR4       R#   + '       g   i     LV; i  + '       g   i     R# ; i)1r  N
INFO:foo:1namer   )
r  
assertLogslog_fooinfo
log_foobarry  r]   outputr  r  r  s   & r   testAssertLogsDefaults$Test_TestCase.testAssertLogsDefaults&  s      """"bS!  % # RYY7!!"**.?@ #""" #""s#   B>+B+	AB>+B;6B>>C	c           	        V P                  4       ;_uu_ 4        V P                  4       ;_uu_ 4       p\        P                  R 4       \        P                  R4       \        P                  R4       RRR4       V P                  XP                  RR.4       V P                  VP                  RR/RR/.4       RRR4       R#   + '       g   i     LZ; i  + '       g   i     R# ; i)	r  r  3Nr  WARNING:quux:3r  r   r   r  r  r  r  r  ry  log_quuxr  r]   r  r  r  r  s   & r   !testAssertLogsTwoMatchingMessages/Test_TestCase.testAssertLogsTwoMatchingMessages/  s      """"bS!  %  % # RYY7G(HI!!"**%+UOff5E#FH #""" #""s$   CA C	2ACCCC(	c           	        V P                  4       ;_uu_ 4        V P                  VR 7      ;_uu_ 4       p\        P                  R4       \        P                  R4       \        P                  R4       RRR4       V P                  XP                  RR.4       V P                  VP                  RR/RR	/.4       RRR4       R#   + '       g   i     LZ; i  + '       g   i     R# ; i)
levelr  r  r  NzERROR:foo.bar:2zCRITICAL:quux:3r  r   r   )r  r  r  r  r  r  r  criticalr]   r  r  r  )r   r  r  s   && r   checkAssertLogsPerLevel%Test_TestCase.checkAssertLogsPerLevel:  s      ""u--$  %!!#& . RYY):<M(NO!!"**%+Y$7&&9I#JL #"-- #""s$   CA C	4ACCCC*	c                f    V P                  \        P                  4       V P                  R 4       R# )ERRORN)r  r  r  r   s   &r   testAssertLogsPerLevel$Test_TestCase.testAssertLogsPerLevelE  s"    $$W]]3$$W-r   c                   V P                  4       ;_uu_ 4        V P                  R R7      ;_uu_ 4       pV P                  VR R7      ;_uu_ 4       p\        P                  R4       \        P                  R4       \        P                  R4       RRR4       V P                  XP                  RR.4       V P                  VP                  RR	/RR
/.4       RRR4       V P                  XP                  R.4       RRR4       R#   + '       g   i     L; i  + '       g   i     LJ; i  + '       g   i     R# ; i)DEBUGr  r  r  r  Nr  zDEBUG:foo.bar:2r  r   r   r  r  )r   loggerouter_cmr  s   &&  r   checkAssertLogsPerLogger&Test_TestCase.checkAssertLogsPerLoggerI  s      ""w//8__V7_;;rLL%$$S)$$S) <   \;L,MN%%bjj)/&)9L'MO 0 X__/?.@A #";; 0/ #""s<   D-D	A DAD	%D-DD	D*%D--D>	c                r    V P                  \        P                  ! R 4      4       V P                  R 4       R# r  )r  r  	getLoggerr   s   &r   testAssertLogsPerLogger%Test_TestCase.testAssertLogsPerLoggerW  s)    %%g&7&7&>?%%e,r   c                X   V P                  4       ;_uu_ 4        V P                  V P                  4      ;_uu_ 4        V P                  4       ;_uu_ 4         R R R 4       R R R 4       R R R 4       R #   + '       g   i     L"; i  + '       g   i     L-; i  + '       g   i     R # ; ir   )r  r^   r_   r  r   s   &r   testAssertLogsFailureNoLogs)Test_TestCase.testAssertLogsFailureNoLogs[  sf      """"4#8#899__&& ' : #"&& :9 #""s:   $BB	A2B	 B2B=B	BBB)	c                   V P                  4       ;_uu_ 4        V P                  V P                  4      ;_uu_ 4        V P                  R R7      ;_uu_ 4        \        P                  R4       RRR4       RRR4       RRR4       R#   + '       g   i     L"; i  + '       g   i     L-; i  + '       g   i     R# ; iWARNINGr  r  N)r  r^   r_   r  r  r  r   s   &r   !testAssertLogsFailureLevelTooHigh/Test_TestCase.testAssertLogsFailureLevelTooHighb  ss      """"4#8#899__9_55LL% 6 : #"55 :9 #""s:   $B.B	B.B	6B.BB	B+&B..B?	c                L   V P                  4       ;_uu_ 4        \        P                  p\        P                  \        P
                  4        V P                  V P                  4      ;_uu_ 4        V P                  R R7      ;_uu_ 4        \        P                  R4       RRR4       RRR4       \        P                  V4        RRR4       R#   + '       g   i     L8; i  + '       g   i     LC; i  \        P                  T4       i ; i  + '       g   i     R# ; ir  )
r  r  r  setLevelr  INFOr^   r_   r  r  )r   oldLevels   & r   4testAssertLogsFailureLevelTooHigh_FilterInRootLoggerBTest_TestCase.testAssertLogsFailureLevelTooHigh_FilterInRootLoggeri  s      ""}}HW\\*+&&t'<'<==y99S) : >   * #"
 :9 >=   * #""sS   4D#C81C%	C"C%	*C82DC"C%	%C50C88DDD#	c                   V P                  R RR7      ;_uu_ 4        V P                  V P                  4      ;_uu_ 4        V P                  R4      ;_uu_ 4        \        P	                  R4       RRR4       RRR4       RRR4       R#   + '       g   i     L"; i  + '       g   i     L-; i  + '       g   i     R# ; i)r   r  r  r   r  N)r  r^   r_   r  r  r   s   &r   &testAssertLogsFailureMismatchingLogger4Test_TestCase.testAssertLogsFailureMismatchingLoggeru  sw     __V7_33""4#8#899__U++NN3' , : 43++ :9 433s;   $B0 B	B
0B	8B0
BB	B-(B00C	c           	         V P                  \        4      ;_uu_ 4        V P                  4       ;_uu_ 4        \        R 4      h  + '       g   i     M; i RRR4       R#   + '       g   i     R# ; irH  N)r^   ZeroDivisionErrorr  r   s   &r   !testAssertLogsUnexpectedException/Test_TestCase.testAssertLogsUnexpectedException}  sG    011""'55 #"" 2111   A!A	AA!!A2	c           	        V P                  V P                  4      ;_uu_ 4       pV P                  4       ;_uu_ 4        \        P	                  R 4       \
        P                  R4       RRR4       RRR4       V P                  \        XP                  4      R4       R#   + '       g   i     L?; i  + '       g   i     LJ; i)r  r  Nz%Unexpected logs found: ['INFO:foo:1'])
r^   r_   assertNoLogsr  r  r  ry  r]   r  r  r  s   & r   testAssertNoLogsDefault%Test_TestCase.testAssertNoLogsDefault  s    t4455""$$S!  % % 6 	3	
 %$ 65"   B2+B	(B2B/*B22C	c           	        V P                  V P                  4      ;_uu_ 4       pV P                  4       ;_uu_ 4        \        P	                  R 4       \
        P	                  R4       RRR4       RRR4       V P                  \        XP                  4      R4       R#   + '       g   i     L?; i  + '       g   i     LJ; i)r  r   Nz8Unexpected logs found: ['ERROR:quux:1', 'ERROR:foo:foo'])	r^   r_   r  r  r  r  r]   r  r  r  s   & r    testAssertNoLogsFailureFoundLogs.Test_TestCase.testAssertNoLogsFailureFoundLogs  s}    t4455""$$s#e$ % 6
 	F	
	 %$ 65r  c                   V P                  4       ;_uu_ 4        V P                  \        4      ;_uu_ 4        V P                  \        R 7      ;_uu_ 4        \        P                  R4       RRR4       RRR4       RRR4       R#   + '       g   i     L"; i  + '       g   i     L-; i  + '       g   i     R# ; i)r  r  N)r  r  r  r  r  r  r   s   &r   testAssertNoLogsPerLogger'Test_TestCase.testAssertNoLogsPerLogger  sn      ""**&&g&66NN3' 7 + #"66 +* #""s:   B,B	B,B	4B,BB	B)$B,,B=	c                   V P                  V P                  4      ;_uu_ 4       pV P                  \        4      ;_uu_ 4        V P	                  \
        R 7      ;_uu_ 4        \        P                  R4       \        P                  R4       RRR4       RRR4       RRR4       V P                  \        XP                  4      R4       R#   + '       g   i     LG; i  + '       g   i     LR; i  + '       g   i     L]; i)r  r  r  Nz)Unexpected logs found: ['INFO:foo.bar:2'])r^   r_   r  r  r  r  r  r  r  r]   r  r  r  s   & r    testAssertNoLogsFailurePerLogger.Test_TestCase.testAssertNoLogsFailurePerLogger  s     t4455**&&g&66NN3'OOC( 7 + 6
 	7	
 76 +* 65s;   C1C	!+CC	C1CC	C.)C11D	c           	     0   V P                  4       ;_uu_ 4        V P                  R R7      ;_uu_ 4        \        P                  R4       \        P                  R4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)r  r  r   r  N)r  r  r  r  r  ry  r   s   &r   testAssertNoLogsPerLevel&Test_TestCase.testAssertNoLogsPerLevel  s]      """""11U#s# 2 #"11 #""s"   B+A1	B1B<BB	c           	        V P                  V P                  4      ;_uu_ 4       pV P                  R R7      ;_uu_ 4        \        P	                  R4       \
        P	                  R4       RRR4       RRR4       V P                  \        XP                  4      R4       R#   + '       g   i     L?; i  + '       g   i     LJ; i)r  r  r   r  Nz8Unexpected logs found: ['DEBUG:foo:foo', 'DEBUG:quux:1'])	r^   r_   r  r  ry  r  r]   r  r  r  s   & r   testAssertNoLogsFailurePerLevel-Test_TestCase.testAssertNoLogsFailurePerLevel  s    t4455"""11e$s# 2 6 	F	
 21 65s"   B4+B!	*B4!B1,B44C	c           	         V P                  \        4      ;_uu_ 4        V P                  4       ;_uu_ 4        \        R 4      h  + '       g   i     M; i RRR4       R#   + '       g   i     R# ; ir  )r^   r  r  r   s   &r   #testAssertNoLogsUnexpectedException1Test_TestCase.testAssertNoLogsUnexpectedException  sI    011""$$'55 %$$ 2111r  c                    V P                  4       ;_uu_ 4       p R R R 4       V P                  X4       R #   + '       g   i     L#; ir   )r  r  )r   values   & r   testAssertNoLogsYieldsNone(Test_TestCase.testAssertNoLogsYieldsNone  s2      E !%  ! s	   6A	c                
   V P                  R R4       V P                  R R4       V P                  \        R 4      R4       V P                  \        R 4      R4       V P                  \        R4      R4       V P                  \        R4      R4       V P                  R\        R4      4       V P                  R\        R4      \        R4      \        R4      34       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        XP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R	4       V P                  V P                  4      ;_uu_ 4       pV P                  RR4       RRR4       V P                  \        VP                  4      R
4       V P                  V P                  4      ;_uu_ 4       pV P                  RR4       RRR4       V P                  \        VP                  4      R
4       V P                  V P                  4      ;_uu_ 4       pV P                  . R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R4       V P                  \        4      ;_uu_ 4        V P                  R \        R4      4       RRR4       V P                  V P                  4      ;_uu_ 4       pV P                  R RR4       RRR4       V P                  R \        VP                  4      4       V P                  V P                  4      ;_uu_ 4       pV P                  R RRR7       RRR4       V P                  R \        VP                  4      4       R#   + '       g   i     EL; i  + '       g   i     ELE; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELX; i  + '       g   i     EL	; i  + '       g   i     EL; i  + '       g   i     ELh; i  + '       g   i     EL=; i  + '       g   i     L; i)r  ababa   ababahalamaha   ababa   x   yamahaNz*'ababahalamaha' doesn't start with 'amaha'z4'ababahalamaha' doesn't start with any of ('x', 'y')Expected str, not bytesExpected str, not listExpected bytes, not strr  abracadabrar  r  r  r  r  r  r  r  r  r  r     amahar  )assertStartsWithr   	bytearrayr^   r_   r]   r  r  r  ordr  r  s   & r   testAssertStartsWith"Test_TestCase.testAssertStartsWith  s   ow7o/BCj97Cj9;NOi(898Di(89;QR.	(0CD.4)H"5yG	I t4455!!/7; 6R\\*<	>t4455!!/:> 6R\\*F	H t4455!!"2G< 6R\\*,EFt4455!!"24FG 6R\\*,EFt4455!!"g. 6R\\*,DEt4455!!/8< 6R\\*,EFt4455!!/3GH 6R\\*,EFy))!!/3s8< * t4455!!/7MJ 6os2<<'89t4455!!/7!N 6os2<<'89A 655 655
 655 655 655 655 655 *)) 655 65x   ?R"R1S(SS-.TT.T)5T=UR.	1S	S	S*	-S>	T	T&	)T:	=U	U!	c                
   V P                  R R4       V P                  R R4       V P                  \        R 4      R4       V P                  \        R 4      R4       V P                  \        R4      R4       V P                  \        R4      R4       V P                  R\        R4      4       V P                  R\        R4      \        R4      \        R4      34       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        XP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  RR4       RRR4       V P                  \        VP                  4      R	4       V P                  V P                  4      ;_uu_ 4       pV P                  RR4       RRR4       V P                  \        VP                  4      R	4       V P                  V P                  4      ;_uu_ 4       pV P                  . R4       RRR4       V P                  \        VP                  4      R
4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R4       V P                  \        4      ;_uu_ 4        V P                  R \        R4      4       RRR4       V P                  V P                  4      ;_uu_ 4       pV P                  R RR4       RRR4       V P                  R \        VP                  4      4       V P                  V P                  4      ;_uu_ 4       pV P                  R RRR7       RRR4       V P                  R \        VP                  4      4       R#   + '       g   i     EL; i  + '       g   i     ELE; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELX; i  + '       g   i     EL	; i  + '       g   i     EL; i  + '       g   i     ELh; i  + '       g   i     EL=; i  + '       g   i     L; i)r  r  r  r  r  r  r  Nz#'ababahalamaha' starts with 'ababa'r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  )assertNotStartsWithr   r  r^   r_   r]   r  r  r  r  r  r  s   & r   testAssertNotStartsWith%Test_TestCase.testAssertNotStartsWith  s     ':  2EF  O!<gF  O!<>QR  +;!<hG  +;!<>TU  !19X3FG  !14)H"5yG	I t4455$$_g> 6R\\*5	7t4455$$_6IJ 6R\\*5	7 t4455$$%5w? 6R\\*,EFt4455$$%57IJ 6R\\*,EFt4455$$R1 6R\\*,DEt4455$$_h? 6R\\*,EFt4455$$_6JK 6R\\*,EFy))$$_c#h? * t4455$$_g}M 6os2<<'89t4455$$_g=$Q 6os2<<'89A 655 655
 655 655 655 655 655 *)) 655 65r  c                
   V P                  R R4       V P                  R R4       V P                  \        R 4      R4       V P                  \        R 4      R4       V P                  \        R4      R4       V P                  \        R4      R4       V P                  R\        R4      4       V P                  R\        R4      \        R4      \        R4      34       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        XP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R	4       V P                  V P                  4      ;_uu_ 4       pV P                  RR4       RRR4       V P                  \        VP                  4      R
4       V P                  V P                  4      ;_uu_ 4       pV P                  RR4       RRR4       V P                  \        VP                  4      R
4       V P                  V P                  4      ;_uu_ 4       pV P                  . R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R4       V P                  \        4      ;_uu_ 4        V P                  R \        R4      4       RRR4       V P                  V P                  4      ;_uu_ 4       pV P                  R RR4       RRR4       V P                  R \        VP                  4      4       V P                  V P                  4      ;_uu_ 4       pV P                  R RRR7       RRR4       V P                  R \        VP                  4      4       R#   + '       g   i     EL; i  + '       g   i     ELE; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELX; i  + '       g   i     EL	; i  + '       g   i     EL; i  + '       g   i     ELh; i  + '       g   i     EL=; i  + '       g   i     L; i)r  r  r  r  r  r  r  Nz('ababahalamaha' doesn't end with 'ababa'z2'ababahalamaha' doesn't end with any of ('x', 'y')r  r  r  r  r  r  r  r  r  r  r  r  r  )r[   r   r  r^   r_   r]   r  r  r  r  r  r  s   & r   testAssertEndsWith Test_TestCase.testAssertEndsWith"  s   OW5O-@AJ7AJ79LMI&67BI&679OP,i.AB,4)H"5yG	I t44559 6R\\*:	<t4455< 6R\\*D	F t4455 0': 6R\\*,EFt4455 02DE 6R\\*,EFt4455G, 6R\\*,DEt4455: 6R\\*,EFt44551EF 6R\\*,EFy))S: * t4455-H 6os2<<'89t4455mL 6os2<<'89A 655 655
 655 655 655 655 655 *)) 655 65r  c                
   V P                  R R4       V P                  R R4       V P                  \        R 4      R4       V P                  \        R 4      R4       V P                  \        R4      R4       V P                  \        R4      R4       V P                  R\        R4      4       V P                  R\        R4      \        R4      \        R4      34       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        XP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  RR4       RRR4       V P                  \        VP                  4      R	4       V P                  V P                  4      ;_uu_ 4       pV P                  RR4       RRR4       V P                  \        VP                  4      R	4       V P                  V P                  4      ;_uu_ 4       pV P                  . R4       RRR4       V P                  \        VP                  4      R
4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R4       V P                  V P                  4      ;_uu_ 4       pV P                  R R4       RRR4       V P                  \        VP                  4      R4       V P                  \        4      ;_uu_ 4        V P                  R \        R4      4       RRR4       V P                  V P                  4      ;_uu_ 4       pV P                  R RR4       RRR4       V P                  R \        VP                  4      4       V P                  V P                  4      ;_uu_ 4       pV P                  R RRR7       RRR4       V P                  R \        VP                  4      4       R#   + '       g   i     EL; i  + '       g   i     ELE; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELX; i  + '       g   i     EL	; i  + '       g   i     EL; i  + '       g   i     ELh; i  + '       g   i     EL=; i  + '       g   i     L; i)r  r  r  r  r  r  r  Nz!'ababahalamaha' ends with 'amaha'r  r  r  r  r  r  r  r   r  r  r  r  )assertNotEndsWithr   r  r^   r_   r]   r  r  r  r  r  r  s   & r   testAssertNotEndsWith#Test_TestCase.testAssertNotEndsWithO  s   80CDz/:GDz/:<OPy)9:HEy)9:<RS/81DE/4)H"5yG	I t4455""?G< 6R\\*3	5t4455""?4GH 6R\\*3	5 t4455""#3W= 6R\\*,EFt4455""#35GH 6R\\*,EFt4455""2w/ 6R\\*,DEt4455""?H= 6R\\*,EFt4455""?4HI 6R\\*,EFy))""?CH= * t4455""?G]K 6os2<<'89t4455""?G"O 6os2<<'89A 655 655
 655 655 655 655 655 *)) 655 65r  c                    . ROpV F4  pV P                  \        4      ;_uu_ 4        \        W4       RRR4       K6  	  R#   + '       g   i     KK  ; i)z:Test that the deprecated fail* methods get removed in 3.12N)failIfEqualfailUnlessEqualfailUnlessAlmostEqualfailIfAlmostEqual
failUnlessfailUnlessRaisesfailIfassertNotEqualsassertEqualsassertAlmostEqualsassertNotAlmostEqualsassert_assertDictContainsSubsetassertRaisesRegexpassertRegexpMatches)r^   r`   r  )r   deprecated_namesdeprecated_names   &  r   testDeprecatedFailMethods'Test_TestCase.testDeprecatedFailMethods|  sA    
  0O"">22. 32  0222s   AAc                ^     ! R  R\         P                  4      pV! R4      p\        V4       R# )c                   &   a  ] tR tRt o R tRtV tR# )0Test_TestCase.testDeepcopy.<locals>.TestableTesti  c                    R # r   r   r   s   &r   testNothing<Test_TestCase.testDeepcopy.<locals>.TestableTest.testNothing  r   r   r   N)r!   r"   r#   r$   r3  r%   r&   r'   s   @r   TestableTestr1    r   r   r5  r3  N)rG   rH   r   )r   r5  r4   s   &  r   testDeepcopyTest_TestCase.testDeepcopy  s)    	8,, 	 M* 	r   c                @   \         P                  ! R 4      p\        \        P                  ^,           4       Fc  p\        P
                  ! WR7      p\        P                  ! V4      pV P                  W4       VP                  \        4       \        4       4       Ke  	  R# )ra   )protocolN)	rG   rH   rangepickleHIGHEST_PROTOCOLdumpsloadsr]   r0  )r   r4   r9  pickled_testunpickled_tests   &    r   
testPickleTest_TestCase.testPickle  sp    
   'f559:H "<<@L#\\,7NT2 &&suce4 ;r   c                  aa RR loR o ! V3R lR\         P                  4      p ! VV3R lR\         P                  4      p ! VV3R lR\         P                  4      p ! V3R	 lR
\         P                  4      pWW43 F?  pV P                  \        4      ;_uu_ 4        V! R4      P	                  4        R R R 4       KA  	  R #   + '       g   i     KV  ; i)Nc                     \         hr   )KeyboardInterruptr   s   &r   _raise3Test_TestCase.testKeyboardInterrupt.<locals>._raise  s    ##r   c                     R # r   r   r   s   &r   nothing4Test_TestCase.testKeyboardInterrupt.<locals>.nothing      r   c                      < ] tR tRt Z tRtR# )2Test_TestCase.testKeyboardInterrupt.<locals>.Test1i  r   Nr!   r"   r#   r$   test_somethingr%   rF  s   r   Test1rM        #Nr   rQ  c                   $   < ] tR tRt Z t ZtRtR# )2Test_TestCase.testKeyboardInterrupt.<locals>.Test2i  r   Nr!   r"   r#   r$   r<   rO  r%   rF  rI  s   r   Test2rT        E$Nr   rW  c                   $   < ] tR tRt Zt Z tRtR# )2Test_TestCase.testKeyboardInterrupt.<locals>.Test3i  r   Nr!   r"   r#   r$   rO  rC   r%   rV  s   r   Test3rZ        $NHr   r\  c                   .   <a  ] tR tRt o V3R ltRtV tR# )2Test_TestCase.testKeyboardInterrupt.<locals>.Test4i  c                *   < V P                  S4       R # r   r  r   rF  s   &r   rO  ATest_TestCase.testKeyboardInterrupt.<locals>.Test4.test_something      'r   r   Nr!   r"   r#   r$   rO  r%   r&   r(   rF  s   @r   Test4r_         ( (r   rg  rO  r   )rG   rH   r^   rE  ra   )r   rQ  rW  r\  rg  klassrF  rI  s   &     @@r   testKeyboardInterrupt#Test_TestCase.testKeyboardInterrupt  s    	$		$H%% 	$	% 	%H%% 	%	 	H%% 		(H%% 	( E1E""#455&'++- 65 2555s   !CCc                  aa RR loR o ! V3R lR\         P                  4      p ! VV3R lR\         P                  4      p ! VV3R lR\         P                  4      p ! V3R	 lR
\         P                  4      pWW43 Fp  p\         P                  ! 4       pV! R4      P                  V4       V P	                  \        VP                  4      ^4       V P	                  VP                  ^4       Kr  	  R # )Nc                 .    \         P                  ! R 4      h)zsome reason)rG   SkipTestr   s   &r   _skip3Test_TestCase.testSkippingEverywhere.<locals>._skip  s    ##M22r   c                     R # r   r   r   s   &r   rI  5Test_TestCase.testSkippingEverywhere.<locals>.nothing  rK  r   c                      < ] tR tRt Z tRtR# )3Test_TestCase.testSkippingEverywhere.<locals>.Test1i  r   NrN  )ro  s   r   rQ  rt    s    "Nr   rQ  c                   $   < ] tR tRt Z t ZtRtR# )3Test_TestCase.testSkippingEverywhere.<locals>.Test2i  r   NrU  ro  rI  s   r   rW  rv    s    E$Nr   rW  c                   $   < ] tR tRt Zt Z tRtR# )3Test_TestCase.testSkippingEverywhere.<locals>.Test3i  r   Nr[  rw  s   r   r\  ry    s    $NHr   r\  c                   .   <a  ] tR tRt o V3R ltRtV tR# )3Test_TestCase.testSkippingEverywhere.<locals>.Test4i  c                *   < V P                  S4       R # r   ra  )r   ro  s   &r   rO  BTest_TestCase.testSkippingEverywhere.<locals>.Test4.test_something  s    &r   r   Nre  )r(   ro  s   @r   rg  r{    s     ' 'r   rg  rO  r   )rG   rH   r   ra   r]   rL  skippedtestsRun)	r   rQ  rW  r\  rg  ri  r   ro  rI  s	   &      @@r   testSkippingEverywhere$Test_TestCase.testSkippingEverywhere  s    	3		#H%% 	#	% 	%H%% 	%	 	H%% 		'H%% 	' E1E((*F"#''/S0!4V__a0	 2r   c                  aa RR loR o ! V3R lR\         P                  4      p ! VV3R lR\         P                  4      p ! VV3R lR\         P                  4      p ! V3R	 lR
\         P                  4      pWW43 Fp  p\         P                  ! 4       pV! R4      P                  V4       V P	                  \        VP                  4      ^4       V P	                  VP                  ^4       Kr  	  R # )Nc                     \         hr   )
SystemExitr   s   &r   rF  ,Test_TestCase.testSystemExit.<locals>._raise  s    r   c                     R # r   r   r   s   &r   rI  -Test_TestCase.testSystemExit.<locals>.nothing  rK  r   c                      < ] tR tRt Z tRtR# )+Test_TestCase.testSystemExit.<locals>.Test1i  r   NrN  rP  s   r   rQ  r    rR  r   rQ  c                   $   < ] tR tRt Z t ZtRtR# )+Test_TestCase.testSystemExit.<locals>.Test2i  r   NrU  rV  s   r   rW  r    rX  r   rW  c                   $   < ] tR tRt Zt Z tRtR# )+Test_TestCase.testSystemExit.<locals>.Test3i  r   Nr[  rV  s   r   r\  r    r]  r   r\  c                   .   <a  ] tR tRt o V3R ltRtV tR# )+Test_TestCase.testSystemExit.<locals>.Test4i  c                *   < V P                  S4       R # r   ra  rb  s   &r   rO  :Test_TestCase.testSystemExit.<locals>.Test4.test_something  rd  r   r   Nre  rf  s   @r   rg  r    rh  r   rg  rO  r   )rG   rH   r   ra   r]   rL  errorsr  )	r   rQ  rW  r\  rg  ri  r   rF  rI  s	   &      @@r   testSystemExitTest_TestCase.testSystemExit  s    			$H%% 	$	% 	%H%% 	%	 	H%% 		(H%% 	( E1E((*F"#''/S/3V__a0	 2r   c                    \         P                  ! 4       p\        P                  ! V4      p\        P
                  ! 4       ;_uu_ 4        ?V P                  V! 4       4       R R R 4       R #   + '       g   i     R # ; ir   )rG   rH   weakrefrefr   
disable_gcr  )r   rJ  wrs   &  r   testNoCyclesTest_TestCase.testNoCycles  sO      "[[!!RT" "!!!s   	A++A<	c                   a  ! V3R  lR\         4      o ! V3R lR\        P                  4      pR FA  pV! V4      pVP                  4        \	        4        V P                  SP                  ^ 4       KC  	  R# )c                   >   <a  ] tR tRt o ^ tV3R ltV3R ltRtV tR# )9Test_TestCase.test_no_exception_leak.<locals>.MyExceptioni  c                d   < S;P                   ^,          un         \        P                  V 4       R# r  )	ninstancer  r7   r   rS   s   &r   r7   BTest_TestCase.test_no_exception_leak.<locals>.MyException.__init__	  s"    %%*%""4(r   c                :   < S;P                   ^,          un         R# r  )r  r  s   &r   __del__ATest_TestCase.test_no_exception_leak.<locals>.MyException.__del__	  s    %%*%r   r   N)	r!   r"   r#   r$   r  r7   r  r%   r&   r(   rS   s   @r   rS   r    s     I)+ +r   rS   c                   X   <a  ] tR tRt o V3R lt]P                  V3R l4       tRtV t	R# )6Test_TestCase.test_no_exception_leak.<locals>.TestCasei		  c                   < S! 4       hr   r   r  s   &r   r   <Test_TestCase.test_no_exception_leak.<locals>.TestCase.test1
	  s    !m#r   c                   < S! 4       hr   r   r  s   &r   r-   <Test_TestCase.test_no_exception_leak.<locals>.TestCase.test2	  s    !m#r   r   N)
r!   r"   r#   r$   r   rG   expectedFailurer-   r%   r&   r  s   @r   rH   r  		  s$     $ %%$ &$r   rH   N)r   r-   )r  rG   rH   ra   r   r]   r  )r   rH   method_nametestcaserS   s   &   @r   test_no_exception_leak$Test_TestCase.test_no_exception_leak  s[    	+) 	+	$x(( 	$ .K,HLLNL[22A6	 .r   )rq  rZ  rC  N)r!   r"   r#   r$   r   r)   eq_pairsr/   ne_pairsrb   rl   rx   r   r   r   r   r   r   r   r   r   r   r   r  r#  r7  r=  r@  rH  rL  rO  rW  rp  rz  r  r  r  r  r  r  r  r  r  r  rG   skipIfr  r  optimizer  r  r  r  r  r  r  r  r	  r  r  r  r-  r4  r>  rU  r\  rf  rl  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r
  r  r  r#  r-  r6  rD  rJ  rS  rW  rg  rr  ru  r  r  r  r  contextmanagerr  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r  r  r  r-  r6  rA  rj  r  r  r   cpython_onlyr  r  r%   r&   r'   s   @r   rM   rM   >   s     '"DHHW$567H '"DHHY$78'"DHHW$56'"DHHW$568H"*=
4:<++.+ +.++,++"	 HD
&20CC2KK+&+8=&D+.+$/+*	&)"3 __SYY''1,@BKBK __SYY''1,@B
B
 __SYY''1,@BQBQ!Q
Q
:(:(:,:,:0:0#*#)J2Mh&'P,
6
;"+HQ:<*|&RP8Wt=B=$=&=,=2JDXM,
0(0@
4:
C$RR%0'CD:.$`7=B**XF  - -
5A	H	L.B-&
+(6
	
(
$	
6!
+:Z+:Z+:Z+:Z/	5".21616 # #7 7r   rM   __main__)'r  rE  rG  r;  r  r  r  r!  r  rm  r@  collectionsr   copyr   r4   r   rG   test.test_unittest.supportr   r   r   r	   r
   test.supportr   r   r  r  r  r  r  r   r  rJ   rH   rM   r!   mainr   r   r   <module>r     s        	 
      "     5 

E
"y)
V$+6 +6	4 	W#7H%%|[ W#7tF zMMO r   