Your IP : 172.28.240.42


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

ó
[³XMc@sEdZddlZejddeddƒdefd„ƒYZdS(	s’
Helper class to writing deterministic time-based unit tests.

Do not use this module.  It is a lie.  See L{twisted.internet.task.Clock}
instead.
iÿÿÿÿNsetwisted.test.time_helpers is deprecated since Twisted 10.0.  See twisted.internet.task.Clock instead.tcategoryt
stacklevelitClockcBsAeZdZdZd„Zd„Zd„Zd„Zd„ZRS(s§
    A utility for monkey-patches various parts of Twisted to use a
    simulated timing mechanism. DO NOT use this class. Use
    L{twisted.internet.task.Clock}.
    gcCs|jS(s4
        Return the current simulated time.
        (trightNow(tself((s=/usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyt__call__scCs)ddlm}|j|_||_dS(sm
        Monkeypatch L{twisted.internet.reactor.seconds} to use
        L{__call__} as a time source
        iÿÿÿÿ(treactorN(ttwisted.internetRtsecondstreactor_original(RR((s=/usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pytinstall scCs ddlm}|j|_dS(sS
        Remove the monkeypatching of L{twisted.internet.reactor.seconds}.
        iÿÿÿÿ(RN(RRR	R(RR((s=/usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyt	uninstall*scCs|j|7_dS(s˜
        Adjust the current simulated time upward by the given C{amount}.

        Note that this does not cause any scheduled calls to be run.
        N(R(Rtamount((s=/usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pytadjust1scCsat|ƒ}|jƒ|j|jƒƒx1|r\|j|jƒƒ|jƒ|jƒq,WdS(sØ
        Iterate the given C{reactor} with increments of time specified
        by C{timings}.

        For each timing, the simulated time will be L{adjust}ed and
        the reactor will be iterated twice.
        N(tlisttreverseR
tpoptiterate(RRttimings((s=/usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pytpump9s
	
(	t__name__t
__module__t__doc__RRR
RR
R(((s=/usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyRs		
		(RtwarningstwarntDeprecationWarningtobjectR(((s=/usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyt<module>	s