HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/trial/test/__pycache__/test_plugins.cpython-38.pyc
U


W[��@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|�dkr2td�|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)�.0Zplugin��
longOptionr�A/usr/lib/python3/dist-packages/twisted/trial/test/test_plugins.py�
<listcomp>s
�z7PluginsTests.getPluginsByLongOption.<locals>.<listcomp>�z2More than one plugin found with long option %r: %rr)rr�len�
ValueError)�selfr
Zpluginsrr	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.
        ZsubunitzSubunit Reporterztwisted.trial.reporterNZSubunitReporter)rZassertEqual�name�modulerZassertIdenticalZshortOpt�klass)rZ
subunitPluginrrr�test_subunitPlugin%s
zPluginsTests.test_subunitPluginN)�__name__�
__module__�__qualname__�__doc__rrrrrrrsrN)	rZtwisted.pluginrZ
twisted.trialrZtwisted.trial.itrialrZSynchronousTestCaserrrrr�<module>s