| 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/internet/test/ |
Upload File : |
ó
ę=Nc @ s3 d Z d d l m Z d e j f d YZ d S( s+
Tests for L{twisted.internet.interfaces}.
i˙˙˙˙( t unittestt TestIFinishableConsumerc B s) e Z d Z d Z d Z d Z RS( s/
L{IFinishableConsumer} is deprecated.
c C s\ | j | g } | j t | d | j | d d t | j | d d d d S( sF
Importing C{testmethod} emits a deprecation warning.
i i t categoryt messages twisted.internet.interfaces.IFinishableConsumer was deprecated in Twisted 11.1.0: Please use IConsumer (and IConsumer.unregisterProducer) instead.N( t
flushWarningst assertEqualt lent assertIdenticalt DeprecationWarning( t selft
testmethodt
warningsShown( ( sI /usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pyt lookForDeprecationWarning s c C s$ d d l m } | j t j d S( sO
Importing L{IFinishableConsumer} causes a deprecation warning
i˙˙˙˙( t IFinishableConsumerN( t twisted.internet.interfacesR
R R t test_deprecationWithDirectImport( R R
( ( sI /usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pyR s c sP d d l m d d l m d d f d Y} | j t j d S( s
Importing L{interfaces} and implementing
L{interfaces.IFinishableConsumer} causes a deprecation warning
i˙˙˙˙( t
implements( t
interfacest FakeIFinishableConsumerc s e Z j d Z RS( c S s d S( N( ( R ( ( sI /usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pyt finish1 s ( t __name__t
__module__R
R ( ( R R ( sI /usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pyR / s
N( ( t zope.interfaceR t twisted.internetR R R t"