Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/trial/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/trial/__pycache__/itrial.cpython-310.pyc
o

�b6�@s8dZddlmZGdd�dej�ZGdd�dej�ZdS)z3
Interfaces for Trial.

Maintainer: Jonathan Lange
�Nc@sBeZdZdZe�d�Zdd�Zdd�Zdd�Z	d	d
�Z
dd�Zd
S)�	ITestCasezU
    The interface that a test case must implement in order to be used in Trial.
    z7The exception class that is raised by failed assertionscC�dS)zQ
        Run the test. Should always do exactly the same thing as run().
        N���resultrr�6/usr/lib/python3/dist-packages/twisted/trial/itrial.py�__call__�zITestCase.__call__cCr)zJ
        Return the number of tests in this test case. Usually 1.
        Nrrrrr�countTestCasesr	zITestCase.countTestCasescCr)zk
        Return a unique identifier for the test, usually the fully-qualified
        Python name.
        Nrrrrr�id!r	zITestCase.idcCr)zj
        Run the test, storing the results in C{result}.

        @param result: A L{TestResult}.
        Nrrrrr�run'r	z
ITestCase.runcCr)z9
        Return a short description of the test.
        Nrrrrr�shortDescription.r	zITestCase.shortDescriptionN)�__name__�
__module__�__qualname__�__doc__�zi�	Attribute�failureExceptionrr
rrr
rrrrrs�rc@sxeZdZdZe�d�Ze�d�Zdd�Zdd�Z	dd	�Z
d
d�Zdd
�Zddd�Z
ddd�Zdd�Zdd�Zdd�ZdS)�	IReporterz6
    I report results from a run of a test suite.
    zHA boolean indicating that this reporter would like the test run to stop.zd
        The number of tests that seem to have been run according to this
        reporter.
        cCr)z�
        Report the beginning of a run of a single test method.

        @param method: an object that is adaptable to ITestMethod
        Nr��methodrrr�	startTestCr	zIReporter.startTestcCr)z~
        Report the status of a single test method

        @param method: an object that is adaptable to ITestMethod
        Nrrrrr�stopTestJr	zIReporter.stopTestcCr)z*
        Record that test passed.
        Nr)�testrrr�
addSuccessQr	zIReporter.addSuccesscCr)aI
        Record that a test has raised an unexpected exception.

        @param test: The test that has raised an error.
        @param error: The error that the test raised. It will either be a
            three-tuple in the style of C{sys.exc_info()} or a
            L{Failure<twisted.python.failure.Failure>} object.
        Nr)r�errorrrr�addErrorVr	zIReporter.addErrorcCr)aH
        Record that a test has failed with the given failure.

        @param test: The test that has failed.
        @param failure: The failure that the test failed with. It will
            either be a three-tuple in the style of C{sys.exc_info()}
            or a L{Failure<twisted.python.failure.Failure>} object.
        Nr)r�failurerrr�
addFailure`r	zIReporter.addFailureNcCr)a�
        Record that the given test failed, and was expected to do so.

        In Twisted 15.5 and prior, C{todo} was a mandatory parameter.

        @type test: L{unittest.TestCase}
        @param test: The test which this is about.
        @type failure: L{failure.Failure}
        @param failure: The error which this test failed with.
        @type todo: L{unittest.Todo}
        @param todo: The reason for the test's TODO status. If L{None}, a
            generic reason is used.
        Nr)rr�todorrr�addExpectedFailurejr	zIReporter.addExpectedFailurecCr)a�
        Record that the given test failed, and was expected to do so.

        In Twisted 15.5 and prior, C{todo} was a mandatory parameter.

        @type test: L{unittest.TestCase}
        @param test: The test which this is about.
        @type todo: L{unittest.Todo}
        @param todo: The reason for the test's TODO status. If L{None}, a
            generic reason is used.
        Nr)rr rrr�addUnexpectedSuccessyr	zIReporter.addUnexpectedSuccesscCr)z�
        Record that a test has been skipped for the given reason.

        @param test: The test that has been skipped.
        @param reason: An object that the test case has specified as the reason
            for skipping the test.
        Nr)r�reasonrrr�addSkip�r	zIReporter.addSkipcCr)z�
        Return a boolean indicating whether all test results that were reported
        to this reporter were successful or not.
        Nrrrrr�
wasSuccessful�r	zIReporter.wasSuccessfulcCr)a1
        Called when the test run is complete.

        This gives the result object an opportunity to display a summary of
        information to the user. Once you have called C{done} on an
        L{IReporter} object, you should assume that the L{IReporter} object is
        no longer usable.
        Nrrrrr�done�r	zIReporter.done)N)rrrrrr�
shouldStop�testsRunrrrrrr!r"r$r%r&rrrrr4s$��




	r)r�zope.interface�	interfacer�	Interfacerrrrrr�<module>s&

Spamworldpro Mini