Your IP : 216.73.217.13


Current Path : /lib/python3/dist-packages/twisted/trial/test/__pycache__/
Upload File :
Current 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