← Back
Editing: test_output.cpython-38.pyc
U W[� � @ s� d Z ddlmZmZmZ ddlZddlmZmZ ddl m Z ddlmZ ddl mZ er^dZnd Zd d� ZG dd � d ej�ZdS )z* Tests for the output generated by trial. � )�absolute_import�division�print_functionN)�NativeStringIO�_PY3)�trial)�runner)�packageszNo module named 'frotz'zNo module named frotzc G sV ddl m} t�� }|�| � t� }tj|j||d d�}t� |�}|� |� |�� S )Nr )�reporterztemp-directory)�streamZworkingDirectory)� twisted.trialr r ZOptionsZparseOptionsr r ZTrialRunnerZVerboseTextReporterZ _getSuite�run�getvalue)�argsr Zconfig�outputZmyRunnerZsuite� r �@/usr/lib/python3/dist-packages/twisted/trial/test/test_output.py�runTrial s � r c s� e Zd ZdZdZdZdd� Zdd� Z� fdd �Z� fd d�Z dd � 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. FZ_testImportErrorsc G s t d| �� f|�� S )Nz--temp-directory)r Zmktemp)�selfr r r r r . s zImportErrorsTests.runTrialc C s t |� |S �N)�print)r Zstuffr r r �_print2 s zImportErrorsTests._printc s t t| �j||f|�|� |S r )�superr �assertIn�r Z containerZ containeer �kwargs�� __class__r r r 7 s ���zImportErrorsTests.assertInc s t t| �j||f|�|� |S r )r r �assertNotInr r r r r >