File: //usr/lib/python3/dist-packages/twisted/trial/test/__pycache__/test_output.cpython-310.pyc
o
�b� � @ s^ d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z dZ
dd � ZG d
d� de j�Z
dS )z*
Tests for the output generated by trial.
� N)�StringIO)�trial)�runner)�packageszNo module named 'frotz'c G sV ddl m} t�� }|�| � t� }tj|j||d d�}t� |�}|�
|� |�� S )Nr )�reporterztemp-directory)�stream�workingDirectory)�
twisted.trialr r �Options�parseOptionsr r �TrialRunner�VerboseTextReporter� _getSuite�run�getvalue)�argsr �config�output�myRunner�suite� r �@/usr/lib/python3/dist-packages/twisted/trial/test/test_output.py�runTrial s
�
r c s� e Zd ZdZdd� ZdZdd� Zdd� Z� fd d
�Z� fdd�Z d
d� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Z� ZS ))�ImportErrorsTestszbActually run trial as if on the command line and check that the output
is what we expect.
c C s d S �Nr ��selfr r r �debug( s zImportErrorsTests.debug�_testImportErrorsc G s t d| �� g|�R � S )Nz--temp-directory)r �mktemp)r r r r r r - s zImportErrorsTests.runTrialc C s t |� |S r )�print)r �stuffr r r �_print0 s zImportErrorsTests._printc � t � j||g|�R i |�� |S r )�super�assertIn�r � container� containeer �kwargs�� __class__r r r% 4 � zImportErrorsTests.assertInc r# r )r$ �assertNotInr&