PHP WebShell

Текущая директория: /usr/lib/python3/dist-packages/twisted/trial/test/__pycache__

Просмотр файла: test_plugins.cpython-310.pyc

o

�b��@s>dZddlmZddlmZddlmZGdd�dej�ZdS)z-
Tests for L{twisted.plugins.twisted_trial}.
�)�
getPlugins)�unittest)�	IReporterc@s eZdZdZdd�Zdd�ZdS)�PluginsTestsz-
    Tests for Trial's reporter plugins.
    cs:�fdd�tt�D�}t|�dkrtd�|f��|dS)z�
        Return the Trial reporter plugin with the given long option.

        If more than one is found, raise ValueError. If none are found, raise
        IndexError.
        csg|]	}|j�kr|�qS�)�longOpt)�.0�plugin��
longOptionr�A/usr/lib/python3/dist-packages/twisted/trial/test/test_plugins.py�
<listcomp>sz7PluginsTests.getPluginsByLongOption.<locals>.<listcomp>�z2More than one plugin found with long option %r: %rr)rr�len�
ValueError)�selfr�pluginsrr
r�getPluginsByLongOptions
���z#PluginsTests.getPluginsByLongOptioncCsT|�d�}|�d|j�|�d|j�|�d|j�|�d|j�|�d|j�dS)zM
        One of the reporter plugins is the subunit reporter plugin.
        �subunitzSubunit Reporterztwisted.trial.reporterN�SubunitReporter)r�assertEqual�name�moduler�assertIdentical�shortOpt�klass)r�
subunitPluginrrr�test_subunitPlugin%s
zPluginsTests.test_subunitPluginN)�__name__�
__module__�__qualname__�__doc__rrrrrrrsrN)	r!�twisted.pluginr�
twisted.trialr�twisted.trial.itrialr�SynchronousTestCaserrrrr�<module>s


Выполнить команду


Для локальной разработки. Не используйте в интернете!