o
    KXh                     @   s>   d dl Z d dlmZ G dd de jZedkre   dS dS )    N)LoggingResultc                   @   sL   e Zd Zdd Zdd Zdd Zdd Zd	d
 Zdd Zdd Z	dd Z
dS )Test_FunctionTestCasec                 C   s"   t dd }| | d d S )Nc                   S      d S N r   r   r   M/opt/python-3.10.19/usr/lib/python3.10/unittest/test/test_functiontestcase.py<lambda>       z;Test_FunctionTestCase.test_countTestCases.<locals>.<lambda>   )unittestFunctionTestCaseassertEqualZcountTestCasesselftestr   r   r   test_countTestCases
      z)Test_FunctionTestCase.test_countTestCasesc                    \   g  t  } fdd} fdd} fdd}g d}t|||| |  | d S )Nc                           d td)NsetUpzraised by setUpappendRuntimeErrorr   eventsr   r   r         
zHTest_FunctionTestCase.test_run_call_order__error_in_setUp.<locals>.setUpc                           d d S Nr   r   r   r   r   r   r         zGTest_FunctionTestCase.test_run_call_order__error_in_setUp.<locals>.testc                      r   NtearDownr   r   r   r   r   r!   !   r   zKTest_FunctionTestCase.test_run_call_order__error_in_setUp.<locals>.tearDown)	startTestr   addErrorstopTestr   r   r   runr   r   resultr   r   r!   Zexpectedr   r   r   #test_run_call_order__error_in_setUp   s   z9Test_FunctionTestCase.test_run_call_order__error_in_setUpc                    r   )Nc                      r   Nr   r   r   r   r   r   r   3   r   zGTest_FunctionTestCase.test_run_call_order__error_in_test.<locals>.setUpc                      r   Nr   zraised by testr   r   r   r   r   r   6   r   zFTest_FunctionTestCase.test_run_call_order__error_in_test.<locals>.testc                      r   r    r   r   r   r   r   r!   :   r   zJTest_FunctionTestCase.test_run_call_order__error_in_test.<locals>.tearDownr"   r   r   r!   r#   r$   r%   r'   r   r   r   "test_run_call_order__error_in_test/   s   z8Test_FunctionTestCase.test_run_call_order__error_in_testc                    s^   g  t  } fdd} fdd} fdd}g d}t||||  | d S )Nc                      r   r*   r   r   r   r   r   r   M   r   zITest_FunctionTestCase.test_run_call_order__failure_in_test.<locals>.setUpc                      s     d d d S r+   )r   Zfailr   r   r   r   r   r   P   s   
zHTest_FunctionTestCase.test_run_call_order__failure_in_test.<locals>.testc                      r   r    r   r   r   r   r   r!   T   r   zLTest_FunctionTestCase.test_run_call_order__failure_in_test.<locals>.tearDown)r"   r   r   r!   Z
addFailurer$   r%   r'   r   r.   r   $test_run_call_order__failure_in_testI   s   z:Test_FunctionTestCase.test_run_call_order__failure_in_testc                    r   )Nc                      r   r*   r   r   r   r   r   r   g   r   zKTest_FunctionTestCase.test_run_call_order__error_in_tearDown.<locals>.setUpc                      r   r   r   r   r   r   r   r   j   r   zJTest_FunctionTestCase.test_run_call_order__error_in_tearDown.<locals>.testc                      r   )Nr!   zraised by tearDownr   r   r   r   r   r!   m   r   zNTest_FunctionTestCase.test_run_call_order__error_in_tearDown.<locals>.tearDownr,   r%   r'   r   r   r   &test_run_call_order__error_in_tearDownc   s   z<Test_FunctionTestCase.test_run_call_order__error_in_tearDownc                 C   s"   t dd }| | t d S )Nc                   S   r   r   r   r   r   r   r   r   }   r	   z/Test_FunctionTestCase.test_id.<locals>.<lambda>)r   r   ZassertIsInstanceidstrr   r   r   r   test_id|   r   zTest_FunctionTestCase.test_idc                 C   s"   t dd }| | d  d S )Nc                   S   r   r   r   r   r   r   r   r      r	   zKTest_FunctionTestCase.test_shortDescription__no_docstring.<locals>.<lambda>r   r   r   ZshortDescriptionr   r   r   r   #test_shortDescription__no_docstring   r   z9Test_FunctionTestCase.test_shortDescription__no_docstringc                 C   s*   d}t jdd |d}| | d d S )Nzthis tests fooc                   S   r   r   r   r   r   r   r   r      r	   zSTest_FunctionTestCase.test_shortDescription__singleline_docstring.<locals>.<lambda>)descriptionr4   )r   Zdescr   r   r   r   +test_shortDescription__singleline_docstring   s   zATest_FunctionTestCase.test_shortDescription__singleline_docstringN)__name__
__module____qualname__r   r)   r-   r/   r0   r3   r5   r7   r   r   r   r   r      s    r   __main__)r   Zunittest.test.supportr   ZTestCaser   r8   mainr   r   r   r   <module>   s     