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/test_manhole.pyc

ó
ê=Nc@s‰ddlmZddlmZddlmZdd
d„ƒYZddd„ƒYZdefd	„ƒYZd
ej	fd„ƒYZ
dS(iÿÿÿÿ(tunittest(tservice(t
LocalAsRemotetDummycBseZRS((t__name__t
__module__(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pyR
stDummyTransportcBseZd„ZRS(cCsdS(NtINETs	127.0.0.1i(Rs	127.0.0.1i((tself((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pytgetHosts(RRR	(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pyR
stDummyManholeClientcBsheZdZeƒZeƒe_d„Zd„Zd„Z	d„Z
d„ZeZe	Z
e
ZeZRS(icCs
g|_dS(N(tmessages(R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pyt__init__scCs|jj|ƒdS(N(Rtextend(RR((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pytconsolescCsdS(N((Rtxplorer((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pytreceiveExplorerscCst|jƒ|_dS(N(tlenRtzero(R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pytsetZeroscCs|j|jS(N(RR(R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pytgetMessages"s(RRRRtbrokerRt	transportRRRRRtsync_consoletsync_receiveExplorertsync_setZerotsync_getMessages(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pyR
s						tManholeTestcBs)eZdZd„Zd„Zd„ZRS(sÀVarious tests for the manhole service.

    Both the the importIdentity and importMain tests are known to fail
    when the __name__ in the manhole namespace is set to certain
    values.
    cCsJtjƒ|_tj|jƒ|_tƒ|_|jj|jdƒdS(N(RtServicetPerspectivetpR
tclienttattachedtNone(R((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pytsetUp2scCsT|jjdƒ|jjƒ|jjdƒ|jjƒd}|j|dƒdS(sJMaking sure imported module is the same as one previously loaded.
        s#from twisted.manhole import services6int(service is sys.modules['twisted.manhole.service'])itresults1
N(sresults1
(Rtperspective_doRRRtassertEqual(Rtmsg((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pyttest_importIdentity8s

cCsj|jjƒ|jjdƒ|jjƒrf|jjƒd}|ddkrf|j|dƒqfndS(sTrying to import __main__simport __main__it	exceptiontstderriN(R(sstderr(RRRR$Rtfail(RR&((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pyttest_importMainAs
(RRt__doc__R"R'R+(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pyR+s			N(((t
twisted.trialRttwisted.manholeRttwisted.spread.utilRRRR
tTestCaseR(((s=/usr/lib/python2.7/dist-packages/twisted/test/test_manhole.pyt<module>s