
    =e                     n    d dl Z d dlmZ  G d de j                  Zedk    r e j                     dS dS )    N)LoggingResultc                   >    e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
d	S )
Test_FunctionTestCasec                     t          j        d           }|                     |                                d           d S )Nc                      d S N r	       :/usr/lib/python3.11/unittest/test/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6,,..22222r
   c                     g t                    }fd}fd}fd}g d}t          j        |||                              |           |                     |           d S )Nc                  L                          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11r
   c                  2                          d           d S Nr   r   r   s   r   r   zGTest_FunctionTestCase.test_run_call_order__error_in_setUp.<locals>.test       MM&!!!!!r
   c                  2                          d           d S 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   s    v&&	2 	2 	2 	2 	2	" 	" 	" 	" 	"	& 	& 	& 	& 	& BAA!$x88<<VDDD*****r
   c                     g t                    }fd}fd}fd}g d}t          j        |||                              |           |                     |           d S )Nc                  2                          d           d S Nr   r!   r   s   r   r   zGTest_FunctionTestCase.test_run_call_order__error_in_test.<locals>.setUp3       MM'"""""r
   c                  L                          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00r
   c                  2                          d           d S 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/   s    v&&	# 	# 	# 	# 	#	1 	1 	1 	1 	1	& 	& 	& 	& 	&8 8 8!$x88<<VDDD*****r
   c                      g t                    }fd} fd}fd}g d}t          j        |||                              |                                |           d S )Nc                  2                          d           d S r2   r!   r   s   r   r   zITest_FunctionTestCase.test_run_call_order__failure_in_test.<locals>.setUpM   r3   r
   c                  \                          d                               d           d S r5   )r   fail)r   r   s   r   r   zHTest_FunctionTestCase.test_run_call_order__failure_in_test.<locals>.testP   s.    MM&!!!II&'''''r
   c                  2                          d           d S 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   s    v&&	# 	# 	# 	# 	#	( 	( 	( 	( 	( 	(	& 	& 	& 	& 	&: : :!$x88<<VDDD*****r
   c                     g t                    }fd}fd}fd}g d}t          j        |||                              |           |                     |           d S )Nc                  2                          d           d S r2   r!   r   s   r   r   zKTest_FunctionTestCase.test_run_call_order__error_in_tearDown.<locals>.setUpg   r3   r
   c                  2                          d           d S r    r!   r   s   r   r   zJTest_FunctionTestCase.test_run_call_order__error_in_tearDown.<locals>.testj   r"   r
   c                  L                          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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   s    v&&	# 	# 	# 	# 	#	" 	" 	" 	" 	"	5 	5 	5 	5 	5     !$x88<<VDDD*****r
   c                     t          j        d           }|                     |                                t                     d S )Nc                      d S 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|   s8    (66dggii-----r
   c                     t          j        d           }|                     |                                d            d S )Nc                      d S 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6..00$77777r
   c                     d}t          j        d |          }|                     |                                d           d S )Nzthis tests fooc                      d S 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   sG    (4HHH..002BCCCCCr
   N)__name__
__module____qualname__r   r/   r7   r>   rC   rI   rN   rS   r	   r
   r   r   r      s        3 3 3+ + +2+ + +4+ + +4+ + +2. . .8 8 8D D D D Dr
   r   __main__)r   unittest.test.supportr   TestCaser   rT   mainr	   r
   r   <module>r[      s     / / / / / /JD JD JD JD JDH- JD JD JDZ zHMOOOOO r
   