| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/test/ |
Upload File : |
ó
[łXMc @ sE d Z d d l Z e j d d e d d d e f d YZ d S( 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˙˙˙˙Nse twisted.test.time_helpers is deprecated since Twisted 10.0. See twisted.internet.task.Clock instead.t categoryt
stackleveli t Clockc B sA e Z d Z d Z d Z d Z d Z d Z d Z RS( 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}.
g c C s | j S( s4
Return the current simulated time.
( t rightNow( t self( ( s= /usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyt __call__ s c C s) d d l m } | j | _ | | _ d S( sm
Monkeypatch L{twisted.internet.reactor.seconds} to use
L{__call__} as a time source
i˙˙˙˙( t reactorN( t twisted.internetR t secondst reactor_original( R R ( ( s= /usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyt install s c C s d d l m } | j | _ d S( sS
Remove the monkeypatching of L{twisted.internet.reactor.seconds}.
i˙˙˙˙( R N( R R R R ( R R ( ( s= /usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyt uninstall* s c C s | j | 7_ d S( 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 ( R t amount( ( s= /usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyt adjust1 s c C sa t | } | j | j | j x1 | r\ | j | j | j | j q, Wd S( 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( t listt reverseR
t popt iterate( R R t timings( ( s= /usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyt pump9 s
( t __name__t
__module__t __doc__R R R
R R
R ( ( ( s= /usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyR s
( R t warningst warnt DeprecationWarningt objectR ( ( ( s= /usr/lib/python2.7/dist-packages/twisted/test/time_helpers.pyt <module> s