
    Vh                     V    d Z ddlmZ ddlmZ ddlmZ  G d dej                        Zy)z-
Tests for L{twisted.plugins.twisted_trial}.
    )
getPlugins)unittest)	IReporterc                       e Zd ZdZd ZddZy)PluginsTestsz-
    Tests for Trial's reporter plugins.
    c                     t        t              D cg c]  }|j                  |k(  s| }}t        |      dkD  rt	        d|d|      |d   S c c}w )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.
           z,More than one plugin found with long option z: r   )r   r   longOptlen
ValueError)self
longOptionpluginpluginss       O/home/dcms/DCMS/lib/python3.12/site-packages/twisted/trial/test/test_plugins.pygetPluginsByLongOptionz#PluginsTests.getPluginsByLongOption   sd     ",I!6
&..J:VF
 
 w<!w(  qz
s
   AANc                 >   | j                  d      }| j                  d|j                         | j                  d|j                         | j                  d|j                         | j                  d|j                         | j                  d|j                         y)zM
        One of the reporter plugins is the subunit reporter plugin.
        subunitzSubunit Reporterztwisted.trial.reporterNSubunitReporter)r   assertEqualnamemoduler
   assertIdenticalshortOptklass)r   subunitPlugins     r   test_subunitPluginzPluginsTests.test_subunitPlugin%   s     33I>+]-?-?@1=3G3GHM$9$9:T=#9#9:*M,?,?@    )returnN)__name__
__module____qualname____doc__r   r    r   r   r   r      s    "	Ar   r   N)	r#   twisted.pluginr   twisted.trialr   twisted.trial.itrialr   SynchronousTestCaser   r$   r   r   <module>r)      s)    & " *A8// Ar   