+
    üÐj6  ã                   ój   € R t ^ RIHt  ! R R]P                  4      t ! R R]P                  4      tR# )z3
Interfaces for Trial.

Maintainer: Jonathan Lange
Nc                   óf   a € ] tR t^t o Rt]P                  ! R4      tR tR t	R t
R tR tRtV tR	# )
Ú	ITestCasezM
The interface that a test case must implement in order to be used in Trial.
z7The exception class that is raised by failed assertionsc                ó   € R# )zA
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__ÚITestCase.__call__   ó   ‚ ó    c                 ó   € R# )z:
Return the number of tests in this test case. Usually 1.
Nr   r   r   r   ÚcountTestCasesÚITestCase.countTestCases   r   r   c                 ó   € R# )zS
Return a unique identifier for the test, usually the fully-qualified
Python name.
Nr   r   r   r   ÚidÚITestCase.id!   r   r   c                ó   € R# )zR
Run the test, storing the results in C{result}.

@param result: A L{TestResult}.
Nr   r   s   &r   ÚrunÚITestCase.run'   r   r   c                 ó   € R# )z)
Return a short description of the test.
Nr   r   r   r   ÚshortDescriptionÚITestCase.shortDescription.   r   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚziÚ	AttributeÚfailureExceptionr	   r   r   r   r   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      s<   ø‡ € ñð —|’|ØAóÐòò
ò
ò÷ð r   r   c                   ó°   a € ] tR t^4t o Rt]P                  ! R4      t]P                  ! R4      tR t	R t
R tR tR tRR
 ltRR ltR tR tR tRtV tR	# )Ú	IReporterz.
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                ó   € R# )zs
Report the beginning of a run of a single test method.

@param method: an object that is adaptable to ITestMethod
Nr   ©Úmethods   &r   Ú	startTestÚIReporter.startTestC   r   r   c                ó   € R# )zf
Report the status of a single test method

@param method: an object that is adaptable to ITestMethod
Nr   r(   s   &r   ÚstopTestÚIReporter.stopTestJ   r   r   c                ó   € R# )z
Record that test passed.
Nr   )Útests   &r   Ú
addSuccessÚIReporter.addSuccessQ   r   r   c                ó   € R# )a  
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   )r0   Úerrors   &&r   ÚaddErrorÚIReporter.addErrorV   r   r   c                ó   € R# )a  
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   )r0   Úfailures   &&r   Ú
addFailureÚIReporter.addFailure`   r   r   Nc                ó   € R# )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   )r0   r8   Útodos   &&&r   ÚaddExpectedFailureÚIReporter.addExpectedFailurej   r   r   c                ó   € R# )aF  
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   )r0   r<   s   &&r   ÚaddUnexpectedSuccessÚIReporter.addUnexpectedSuccessy   r   r   c                ó   € R# )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   )r0   Úreasons   &&r   ÚaddSkipÚIReporter.addSkip†   r   r   c                 ó   € R# )zr
Return a boolean indicating whether all test results that were reported
to this reporter were successful or not.
Nr   r   r   r   ÚwasSuccessfulÚIReporter.wasSuccessful�   r   r   c                 ó   € R# )a  
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.
Nr   r   r   r   ÚdoneÚIReporter.done•   r   r   r   )N)r   r   r   r   r   r   r   Ú
shouldStopÚtestsRunr*   r-   r1   r5   r9   r=   r@   rD   rG   rJ   r!   r"   r#   s   @r   r&   r&   4   si   ø‡ € ñð —’ØUó€Jð �|Š|ð	ó€Hòòòò
òôôòò÷ð r   r&   )r   Úzope.interfaceÚ	interfacer   Ú	Interfacer   r&   r   r   r   Ú<module>rQ      s2   ðñõ ô#�—‘ô #ôLi�—‘ö ir   