Your IP : 172.28.240.42


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


=Nc@s3dZddlmZdejfdYZdS(s+
Tests for L{twisted.internet.interfaces}.
i(tunittesttTestIFinishableConsumercBs)eZdZdZdZdZRS(s/
    L{IFinishableConsumer} is deprecated.
    cCs\|j|g}|jt|d|j|ddt|j|ddddS(sF
        Importing C{testmethod} emits a deprecation warning.
        iitcategorytmessagestwisted.internet.interfaces.IFinishableConsumer was deprecated in Twisted 11.1.0: Please use IConsumer (and IConsumer.unregisterProducer) instead.N(t
flushWarningstassertEqualtlentassertIdenticaltDeprecationWarning(tselft
testmethodt
warningsShown((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pytlookForDeprecationWarningscCs$ddlm}|jtjdS(sO
        Importing L{IFinishableConsumer} causes a deprecation warning
        i(tIFinishableConsumerN(ttwisted.internet.interfacesR
RRt test_deprecationWithDirectImport(R	R
((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pyRscsPddlmddlmddfdY}|jtjdS(s
        Importing L{interfaces} and implementing
        L{interfaces.IFinishableConsumer} causes a deprecation warning
        i(t
implements(t
interfacestFakeIFinishableConsumercseZjdZRS(cSsdS(N((R	((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pytfinish1s(t__name__t
__module__R
R((RR(sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pyR/s
N((tzope.interfaceRttwisted.internetRRRt"test_deprecationWithIndirectImport(R	R((RRsI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pyR's
(RRt__doc__RRR(((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pyRs			N(Rt
twisted.trialRtTestCaseR(((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_interfaces.pyt<module>s