
    daf                     p    d dl Z d dlmZ  G d de j                        Zedk(  r e j                          yy)    N)LoggingResultc                   <    e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
y	)
Test_FunctionTestCasec                 p    t        j                  d       }| j                  |j                         d       y )Nc                       y N r	       C/root/Python-3.12.4/Lib/test/test_unittest/test_functiontestcase.py<lambda>z;Test_FunctionTestCase.test_countTestCases.<locals>.<lambda>       r
      )unittestFunctionTestCaseassertEqualcountTestCasesselftests     r   test_countTestCasesz)Test_FunctionTestCase.test_countTestCases
   s+    ((6,,.2r
   c                     g t              }fd}fd}fd}g d}t        j                  |||      j                  |       | j	                  |       y )Nc                  <     j                  d       t        d      )NsetUpzraised by setUpappendRuntimeErroreventss   r   r   zHTest_FunctionTestCase.test_run_call_order__error_in_setUp.<locals>.setUp   s    MM'"011r
   c                  (     j                  d       y Nr   r   r   s   r   r   zGTest_FunctionTestCase.test_run_call_order__error_in_setUp.<locals>.test       MM&!r
   c                  (     j                  d       y NtearDownr!   r   s   r   r%   zKTest_FunctionTestCase.test_run_call_order__error_in_setUp.<locals>.tearDown!       MM*%r
   )	startTestr   addErrorstopTestr   r   r   runr   r   resultr   r   r%   expectedr   s         @r   #test_run_call_order__error_in_setUpz9Test_FunctionTestCase.test_run_call_order__error_in_setUp   sV    v&	2	"	& B!!$x8<<VD*r
   c                     g t              }fd}fd}fd}g d}t        j                  |||      j                  |       | j	                  |       y )Nc                  (     j                  d       y Nr   r!   r   s   r   r   zGTest_FunctionTestCase.test_run_call_order__error_in_test.<locals>.setUp3       MM'"r
   c                  <     j                  d       t        d      Nr   zraised by testr   r   s   r   r   zFTest_FunctionTestCase.test_run_call_order__error_in_test.<locals>.test6   s    MM&!/00r
   c                  (     j                  d       y r$   r!   r   s   r   r%   zJTest_FunctionTestCase.test_run_call_order__error_in_test.<locals>.tearDown:   r&   r
   )r'   r   r   r(   r%   r)   r*   r,   s         @r   "test_run_call_order__error_in_testz8Test_FunctionTestCase.test_run_call_order__error_in_test/   sU    v&	#	1	&8!!$x8<<VD*r
   c                      g t              }fd} fd}fd}g d}t        j                  |||      j                  |        j	                  |       y )Nc                  (     j                  d       y r2   r!   r   s   r   r   zITest_FunctionTestCase.test_run_call_order__failure_in_test.<locals>.setUpM   r3   r
   c                  J     j                  d       j                  d       y r5   )r   fail)r   r   s   r   r   zHTest_FunctionTestCase.test_run_call_order__failure_in_test.<locals>.testP   s    MM&!II&'r
   c                  (     j                  d       y r$   r!   r   s   r   r%   zLTest_FunctionTestCase.test_run_call_order__failure_in_test.<locals>.tearDownT   r&   r
   )r'   r   r   
addFailurer%   r)   r*   r,   s   `     @r   $test_run_call_order__failure_in_testz:Test_FunctionTestCase.test_run_call_order__failure_in_testI   sU    v&	#	(	&:!!$x8<<VD*r
   c                     g t              }fd}fd}fd}g d}t        j                  |||      j                  |       | j	                  |       y )Nc                  (     j                  d       y r2   r!   r   s   r   r   zKTest_FunctionTestCase.test_run_call_order__error_in_tearDown.<locals>.setUpg   r3   r
   c                  (     j                  d       y r    r!   r   s   r   r   zJTest_FunctionTestCase.test_run_call_order__error_in_tearDown.<locals>.testj   r"   r
   c                  <     j                  d       t        d      )Nr%   zraised by tearDownr   r   s   r   r%   zNTest_FunctionTestCase.test_run_call_order__error_in_tearDown.<locals>.tearDownm   s    MM*%344r
   )r'   r   r   r%   r(   r)   r*   r,   s         @r   &test_run_call_order__error_in_tearDownz<Test_FunctionTestCase.test_run_call_order__error_in_tearDownc   sU    v&	#	"	5 !!$x8<<VD*r
   c                 x    t        j                  d       }| j                  |j                         t               y )Nc                       y r   r	   r	   r
   r   r   z/Test_FunctionTestCase.test_id.<locals>.<lambda>}   r   r
   )r   r   assertIsInstanceidstrr   s     r   test_idzTest_FunctionTestCase.test_id|   s(    ((6dggi-r
   c                 p    t        j                  d       }| j                  |j                         d        y )Nc                       y r   r	   r	   r
   r   r   zKTest_FunctionTestCase.test_shortDescription__no_docstring.<locals>.<lambda>   r   r
   r   r   r   shortDescriptionr   s     r   #test_shortDescription__no_docstringz9Test_FunctionTestCase.test_shortDescription__no_docstring   s+    ((6..0$7r
   c                 x    d}t        j                  d |      }| j                  |j                         d       y )Nzthis tests fooc                       y r   r	   r	   r
   r   r   zSTest_FunctionTestCase.test_shortDescription__singleline_docstring.<locals>.<lambda>   r   r
   )descriptionrL   )r   descr   s      r   +test_shortDescription__singleline_docstringzATest_FunctionTestCase.test_shortDescription__singleline_docstring   s3    ((4H..02BCr
   N)__name__
__module____qualname__r   r/   r7   r>   rC   rI   rN   rS   r	   r
   r   r   r      s+    3+2+4+4+2.8Dr
   r   __main__)r   test.test_unittest.supportr   TestCaser   rT   mainr	   r
   r   <module>r[      s<     4JDH-- JDZ zHMMO r
   