| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/trial/__pycache__/ |
Upload File : |
U
��W[*9 � @ s� d Z ddlmZmZ ddlZddlZddlmZ ddlm Z m
Z
ddlmZ ddl
mZmZ ddlmZmZmZ g Zeej�G d d
� d
e��ZdS )zP
Things likely to be used by writers of unit tests.
Maintainer: Jonathan Lange
� )�division�absolute_importN)�implementer)�defer�utils)�failure)�itrial�util)�FailTest�SkipTest�SynchronousTestCasec s� e Zd ZdZd3� fdd� Zdd� ZeZdd� Zd d
� Zdd� Z d
d� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Z� fd+d,�Zd-d.� Zd/d0� Zefd1d2�Z� ZS )4�TestCasea=
A unit test. The atom of the unit testing universe.
This class extends L{SynchronousTestCase} which extends C{unittest.TestCase}
from the standard library. The main feature is the ability to return
C{Deferred}s from tests and fixture methods and to have the suite wait for
those C{Deferred}s to fire. Also provides new assertions such as
L{assertFailure}.
@ivar timeout: A real number of seconds. If set, the test will
raise an error if it takes longer than C{timeout} seconds.
If not set, util.DEFAULT_TIMEOUT_DURATION is used.
�runTestc s t t| ��|� dS )a�
Construct an asynchronous test case for C{methodName}.
@param methodName: The name of a method on C{self}. This method should
be a unit test. That is, it should be a short method that calls some of
the assert* methods. If C{methodName} is unspecified,
L{SynchronousTestCase.runTest} will be used as the test method. This is
mostly useful for testing Trial.
N)�superr
�__init__)�self�
methodName�� __class__� �:/usr/lib/python3/dist-packages/twisted/trial/_asynctest.pyr . s
zTestCase.__init__c s&