
    Yf                     T    d Z ddlmZ ddlmZ ddlmZ  G d dej                  ZdS )z-
Tests for L{twisted.plugins.twisted_trial}.
    )
getPlugins)unittest)	IReporterc                        e Zd ZdZd ZddZdS )PluginsTestsz-
    Tests for Trial's reporter plugins.
    c                     fdt          t                    D             }t          |          dk    rt          dd|          |d         S )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.
        c                 *    g | ]}|j         k    |S  )longOpt).0plugin
longOptions     Q/var/www/html/env/lib/python3.11/site-packages/twisted/trial/test/test_plugins.py
<listcomp>z7PluginsTests.getPluginsByLongOption.<locals>.<listcomp>   s,     
 
 
&.J:V:VF:V:V:V       z,More than one plugin found with long option z: r   )r   r   len
ValueError)selfr   pluginss    ` r   getPluginsByLongOptionz#PluginsTests.getPluginsByLongOption   sv    
 
 
 
!+I!6!6
 
 
 w<<!*::ww(   qzr   returnNc                 >   |                      d          }|                     d|j                   |                     d|j                   |                     d|j                   |                     d|j                   |                     d|j                   dS )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=3GHHHM$9:::T=#9:::*M,?@@@@@r   )r   N)__name__
__module____qualname____doc__r   r#   r
   r   r   r   r      sG           "	A 	A 	A 	A 	A 	Ar   r   N)	r'   twisted.pluginr   twisted.trialr   twisted.trial.itrialr   SynchronousTestCaser   r
   r   r   <module>r,      s     & % % % % % " " " " " " * * * * * *A A A A A8/ A A A A Ar   