%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/trial/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/trial/__pycache__/itrial.cpython-312.pyc

�

Ϫ�f6��h�dZddlmZGd�dej�ZGd�dej�Zy)z3
Interfaces for Trial.

Maintainer: Jonathan Lange
�Nc�R�eZdZdZej
d�Zd�Zd�Zd�Z	d�Z
d�Zy)	�	ITestCasezU
    The interface that a test case must implement in order to be used in Trial.
    z7The exception class that is raised by failed assertionsc��y)zQ
        Run the test. Should always do exactly the same thing as run().
        N���results �6/usr/lib/python3/dist-packages/twisted/trial/itrial.py�__call__zITestCase.__call__���c��y)zJ
        Return the number of tests in this test case. Usually 1.
        Nrrrr	�countTestCaseszITestCase.countTestCasesrrc��y)zk
        Return a unique identifier for the test, usually the fully-qualified
        Python name.
        Nrrrr	�idzITestCase.id!rrc��y)zj
        Run the test, storing the results in C{result}.

        @param result: A L{TestResult}.
        Nrrs r	�runz
ITestCase.run'rrc��y)z9
        Return a short description of the test.
        Nrrrr	�shortDescriptionzITestCase.shortDescription.rrN)�__name__�
__module__�__qualname__�__doc__�zi�	Attribute�failureExceptionr
rrrrrrr	rrs6���$�r�|�|�A����
�
��rrc��eZdZdZej
d�Zej
d�Zd�Zd�Z	d�Z
d�Zd�Zdd
�Z
dd�Zd�Zd
�Zd�Zy	)�	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.
        c��y)z�
        Report the beginning of a run of a single test method.

        @param method: an object that is adaptable to ITestMethod
        Nr��methods r	�	startTestzIReporter.startTestCrrc��y)z~
        Report the status of a single test method

        @param method: an object that is adaptable to ITestMethod
        Nrrs r	�stopTestzIReporter.stopTestJrrc��y)z*
        Record that test passed.
        Nr)�tests r	�
addSuccesszIReporter.addSuccessQrrc��y)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%�errors  r	�addErrorzIReporter.addErrorVrrc��y)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%�failures  r	�
addFailurezIReporter.addFailure`rrNc��y)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)r%r+�todos   r	�addExpectedFailurezIReporter.addExpectedFailurejrrc��y)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)r%r.s  r	�addUnexpectedSuccesszIReporter.addUnexpectedSuccessyrrc��y)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%�reasons  r	�addSkipzIReporter.addSkip�rrc��y)z�
        Return a boolean indicating whether all test results that were reported
        to this reporter were successful or not.
        Nrrrr	�
wasSuccessfulzIReporter.wasSuccessful�rrc��y)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.
        Nrrrr	�donezIReporter.done�rr)N)rrrrrr�
shouldStop�testsRunr!r#r&r)r,r/r1r4r6r8rrr	rr4se�������U��J��r�|�|�	��H����
��
����rr)r�zope.interface�	interfacer�	Interfacerrrrr	�<module>r>s2����#����#�Li����ir

Zerion Mini Shell 1.0