HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //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