Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/trial/test/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/trial/test/test_doctest.pyc

ó
°úëMc@sUdZddlmZmZmZmZddlmZdejfd„ƒYZ	dS(s!
Test Twisted's doctest support.
iÿÿÿÿ(titrialtrunnertunittesttreporter(tmockdoctesttTestRunnerscBs>eZdZd„Zd„Zd„Zdd„Zd„ZRS(s.
    Tests for Twisted's doctest support.
    cCsXtjƒ}|jtƒ}d}x0|jD]%}|j|tj|ƒjƒƒq+WdS(sÁ
        Check that the id() of the doctests' case object contains the FQPN of
        the actual tests. We need this because id() has weird behaviour w/
        doctest in Python 2.3.
        s&twisted.trial.test.mockdoctest.CounterN(	Rt
TestLoadertloadDoctestsRt_teststassertInRt	ITestCasetid(tselftloadertsuitetidPrefixttest((sC/usr/lib/python2.7/dist-packages/twisted/trial/test/test_doctest.pyttest_ids
cCs5tjƒ}|jtƒ}|jd|jƒƒdS(sP
        L{loadDoctests} loads all of the doctests in the given module.
        iN(RRRRtassertEqualtcountTestCases(RR
R((sC/usr/lib/python2.7/dist-packages/twisted/trial/test/test_doctest.pyttest_basicTrialIntegrationscCsVtjƒ}|j|ƒ|jd|jƒ|jdt|jƒt|jƒƒdS(s4
        Run C{suite} and check the result.
        iiN(Rt
TestResulttrunRt	successestlenterrorstfailures(RRtresult((sC/usr/lib/python2.7/dist-packages/twisted/trial/test/test_doctest.pyt_testRun's
icCs&tjƒjtƒ}|j|ƒdS(sL
        Trial can correctly run doctests with its xUnit test APIs.
        N(RRRRR(RtcountR((sC/usr/lib/python2.7/dist-packages/twisted/trial/test/test_doctest.pyttest_expectedResults2scCs3tjƒjtƒ}|j|ƒ|j|ƒdS(s9
        Doctests should be runnable repeatably.
        N(RRRRR(RR((sC/usr/lib/python2.7/dist-packages/twisted/trial/test/test_doctest.pyttest_repeatable:s
(t__name__t
__module__t__doc__RRRRR(((sC/usr/lib/python2.7/dist-packages/twisted/trial/test/test_doctest.pyRs	
			N(
R"t
twisted.trialRRRRttwisted.trial.testRtTestCaseR(((sC/usr/lib/python2.7/dist-packages/twisted/trial/test/test_doctest.pyt<module>s"