File: //proc/self/root/lib/python3/dist-packages/twisted/trial/test/__pycache__/test_tests.cpython-38.pyc
U
W[n� � @ s� d Z ddlmZmZ ddlZddlZddlZddlZddl m
Z
mZ ddlm
Z
ddlmZmZ ddlmZmZmZ ddlmZ dd lmZ dd
lmZ ddlmZmZmZ G dd
� d
e�ZG dd� de�ZG dd� deej �Z!G dd� deej"�Z#G dd� de�Z$G dd� de$ej �Z%G dd� de$ej"�Z&G dd� de�Z'G dd� de'ej �Z(G dd� de'ej"�Z)G d d!� d!e�Z*G d"d#� d#e*ej �Z+G d$d%� d%e*ej"�Z,G d&d'� d'e�Z-G d(d)� d)e-ej �Z.G d*d+� d+e-ej"�Z/G d,d-� d-e�Z0G d.d/� d/e0ej �Z1G d0d1� d1e0ej"�Z2G d2d3� d3ej �Z3G d4d5� d5e�Z4G d6d7� d7e4ej �Z5G d8d9� d9e4ej"�Z6G d:d;� d;eej"�Z7G d<d=� d=e�Z8G d>d?� d?e8ej �Z9G d@dA� dAe8ej �Z:G dBdC� dCej �Z;G dDdE� dEe�Z<G dFdG� dGe<ej �Z=G dHdI� dIe<ej"�Z>G dJdK� dKe�Z?G dLdM� dMe?ej �Z@G dNdO� dOe?ej"�ZAG dPdQ� dQe�ZBG dRdS� dSeBej �ZCG dTdU� dUeBej"�ZDG dVdW� dWe�ZEG dXdY� dYeEej �ZFG dZd[� d[eEej"�ZGG d\d]� d]e�ZHG d^d_� d_eHej �ZIG d`da� daeHej"�ZJG dbdc� dcej �ZKdS )da�
Tests for the behaviour of unit tests.
Many tests in this module follow a simple pattern. A mixin is defined which
includes test methods for a certain feature. The mixin is inherited from twice,
once by a class also inheriting from SynchronousTestCase and once from a class
inheriting from TestCase. These two subclasses are named like
I{SynchronousFooTests} and I{AsynchronousFooTests}, where I{Foo} is related to
the name of the mixin. Sometimes the mixin is defined in another module, along
with the synchronous subclass. The mixin is imported into this module to define
the asynchronous subclass.
This pattern allows the same tests to be applied to the two base test case
classes trial provides, ensuring their behavior is the same.
Most new tests should be added in this pattern. Tests for functionality which
is intentionally only provided by TestCase, not SynchronousTestCase, is excepted
of course.
� )�division�absolute_importN)�NativeStringIO�_PY3)�namedAny)�defer�reactor)�unittest�reporter�util)�runner)� erroneous)�SuppressionMixin)�_clearSuite� _ForceGarbageCollectionDecorator�
_iterateTestsc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �ResultsTestMixinzG
Provide useful APIs for test cases that are about test cases.
c C s&