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_gtkreactor.pyc

ó
ê=Nc@s<dZddlZddlmZdefd„ƒYZdS(sS
Tests to ensure all attributes of L{twisted.internet.gtkreactor} are 
deprecated.
iÿÿÿÿN(tTestCasetGtkReactorDeprecationcBsseZdZddd„ƒYZdd
d„ƒYZd„Zd„Zd„Zd„Zd	„Z	d
„Z
d„ZRS(s_
    Tests to ensure all attributes of L{twisted.internet.gtkreactor} are 
    deprecated.
    tStubGTKcBs$eZddd„ƒYZd„ZRS(tGDKcBseZdZRS(N(t__name__t
__module__tNonet
INPUT_READ(((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyRscGsdS(N((tselftparams((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyt	input_adds((RRRR
(((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyRst	StubPyGTKcBseZd„ZRS(cCsdS(N((Rt	something((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pytrequires(RRR
(((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyRscCs<tjjƒ|_|jƒtjd<|jƒtjd<dS(s‰
        Create a stub for the module 'gtk' if it does not exist, so that it can
        be imported without errors or warnings.
        tgtktpygtkN(tsystmodulestcopytmodsRR(R((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pytsetUpscCs$tjjƒtjj|jƒdS(sG
        Return sys.modules to the way it was before the test.
        N(RRtcleartupdateR(R((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyttearDown(s
cCsd|j|gƒ}|jt|ƒdƒ|j|ddtƒ|j|ddd|dƒdS(Niitcategorytmessagestwisted.internet.gtkreactor.s‹ was deprecated in Twisted 10.1.0: All new applications should be written with gtk 2.x, which is supported by twisted.internet.gtk2reactor.(t
flushWarningstassertEqualtlentassertIdenticaltDeprecationWarning(Rt
testmethodt
attributeNamet
warningsShown((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pytlookForDeprecationWarning0scCs1ddlm}|jƒ|j|jdƒdS(s>
        Test deprecation of L{gtkreactor.GtkReactor}
        iÿÿÿÿ(t
gtkreactort
GtkReactorN(ttwisted.internetR#R$R"ttest_gtkReactor(RR#((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyR&<s
cCs1ddlm}|jƒ|j|jdƒdS(s>
        Test deprecation of L{gtkreactor.GtkReactor}
        iÿÿÿÿ(R#tPortableGtkReactorN(R%R#R'R"ttest_portableGtkReactor(RR#((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyR(Es
cCs:ddlm}|jt|jƒ|j|jdƒdS(s;
        Test deprecation of L{gtkreactor.install}
        iÿÿÿÿ(R#tinstallN(R%R#tassertRaisestAssertionErrorR)R"ttest_install(RR#((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyR,OscCs:ddlm}|jt|jƒ|j|jdƒdS(sC
        Test deprecation of L{gtkreactor.portableInstall}
        iÿÿÿÿ(R#tportableInstallN(R%R#R*R+R-R"ttest_portableInstall(RR#((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyR.Xs(((RRt__doc__RRRRR"R&R(R,R.(((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyRs	
					
		(R/Rttwisted.trial.unittestRR(((sI/usr/lib/python2.7/dist-packages/twisted/internet/test/test_gtkreactor.pyt<module>s