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

ó
ê=Nc@sIddlmZddlmZddlZdejfd„ƒYZdS(iÿÿÿÿ(tunittest(terrorNtTestStringificationc)Bs“eZdZdejfdejdgfdejddgfdejddejd	ƒffd
ejfdejddgfdejfd
ejddgfdej	fdej	dgfdej	gidd6fdej	ddgfdej
fdej
dgfdej
ddgfdejfdejfdej
fdejfdejfdejfdejfdejfdejfd ejfd!ejddgfd"ejfd#ejddgfd$ejfd%ejfd&ejddgfd'ejfd(ejd5gfd)ejfd*ejgid+d,6fd-ejgid.d/6fd0ejfd1ejfg&Zd2„Zd3„Z d4„Z!RS(6s;Test that the exceptions have useful stringifications.
    s*An error occurred binding to an interface.s/An error occurred binding to an interface: foo.tfoos3An error occurred binding to an interface: foo bar.tbars"Couldn't listen on eth0:4242: Foo.teth0i’tFoosMessage is too long to send.s%Message is too long to send: foo bar.sDNS lookup failed.sDNS lookup failed: foo bar.s#An error occurred while connecting.s0An error occurred while connecting: someOsError.tsomeOsErrors(An error occurred while connecting: foo.tstrings5An error occurred while connecting: someOsError: foo.sCouldn't bind.sCouldn't bind: someOsError.s Couldn't bind: someOsError: foo.sHostname couldn't be looked up.sNo route to host.s%Connection was refused by other side.sTCP connection timed out.s%File used for UNIX socket is no good.s&Service name given as port is unknown.sUser aborted connection.s'User timeout caused connection failure.sAn SSL error occurred.s=Connection to the other side was lost in a non-clean fashion.sFConnection to the other side was lost in a non-clean fashion: foo bar.sConnection was closed cleanly.s'Connection was closed cleanly: foo bar.sUh.s(Tried to cancel an already-called event.s1Tried to cancel an already-called event: foo bar.s+Tried to cancel an already-cancelled event.sOA process has ended without apparent errors: process finished with exit code 0.sCA process has ended with a probable error condition: process ended.sUA process has ended with a probable error condition: process ended with exit code 42.i*texitCodesTA process has ended with a probable error condition: process ended by signal SIGBUS.tSIGBUStsignalsFThe Connector was not connecting when it was asked to stop connecting.s?The Port was not listening when it was asked to stop listening.cCs›x”|jD]‰}|d}|d}y|d}Wntk
rKd}nXy|d}Wntk
rsi}nX|jt|||Žƒ|ƒq
WdS(Niiii((tlistOfTestst
IndexErrortassertEqualtstr(tselftentrytoutputt	exceptiontargstkwargs((s;/usr/lib/python2.7/dist-packages/twisted/test/test_error.pyttestThemAllŠs





cCs |jttjtjƒƒdS(sW
        L{error.ConnectionClosed} is a superclass of L{error.ConnectionLost}.
        N(t
assertTruet
issubclassRtConnectionLosttConnectionClosed(R((s;/usr/lib/python2.7/dist-packages/twisted/test/test_error.pyt-test_connectionLostSubclassOfConnectionClosedœscCs |jttjtjƒƒdS(sW
        L{error.ConnectionClosed} is a superclass of L{error.ConnectionDone}.
        N(RRRtConnectionDoneR(R((s;/usr/lib/python2.7/dist-packages/twisted/test/test_error.pyt-test_connectionDoneSubclassOfConnectionClosed¤sN("t__name__t
__module__t__doc__Rt	BindErrortCannotListenErrortsockettMessageLengthErrortDNSLookupErrortConnectErrortConnectBindErrortUnknownHostErrortNoRouteErrortConnectionRefusedErrortTCPTimedOutErrortBadFileErrortServiceNameUnknownErrort	UserErrortTimeoutErrortSSLErrorRRtConnectionFdescWentAwayt
AlreadyCalledtAlreadyCancelledtProcessDonetNonetProcessTerminatedtNotConnectingErrortNotListeningErrorRRRR(((s;/usr/lib/python2.7/dist-packages/twisted/test/test_error.pyR	s¬																					

			(t
twisted.trialRttwisted.internetRR#tTestCaseR(((s;/usr/lib/python2.7/dist-packages/twisted/test/test_error.pyt<module>s