Sindbad~EG File Manager
�
TԚgw@ � �x � d dl Z d dlZd dlZd� Z G d� dej � � Zedk r ej � � dS dS )� Nc �( � t j � � S �N)�unittest�
TestResult)�_s �6/usr/local/lib/python3.11/unittest/test/test_setups.py�
resultFactoryr s � ��� � � � c � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� ZdS )�
TestSetupsc �Z � t j t t j � � �� � S )N)�resultclass�stream)r �TextTestRunnerr �io�StringIO��selfs r � getRunnerzTestSetups.getRunner
s+ � ��&�=�13����@� @� @� @r
c �� � t j � � }|D ]6}t j � |� � }|� |� � �7| � � � }t j � � }|� |� � |� t j � � � � |� t j � � � � |� |� � S r )r � TestSuite�defaultTestLoader�loadTestsFromTestCase�addTestsr �addTest�run)r �cases�suite�case�tests�runner� realSuites r �runTestszTestSetups.runTests s� � ��"�$�$��� "� "�D��.�D�D�T�J�J�E��N�N�5�!�!�!�!����!�!�� �&�(�(� ����%� � � �
�
�
�h�(�*�*�+�+�+����(�,�.�.�/�/�/��z�z�)�$�$�$r
c �" �� G �fd�dt j � � �| � �� � }| � �j d� � | � |j d� � | � t
|j � � d� � d S )Nc �: �� e Zd ZdZe� fd�� � Zd� Zd� ZdS )�)TestSetups.test_setup_class.<locals>.Testr c �d �� �xj dz
c_ t j � � � d S �N� )�setUpCalledr �TestCase�
setUpClass��cls�Tests �r r, z4TestSetups.test_setup_class.<locals>.Test.setUpClass# s2 �� �� � �A�%� � ��!�,�,�.�.�.�.�.r
c � � d S r � r s r �test_onez2TestSetups.test_setup_class.<locals>.Test.test_one'