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


;Nc@sadZddlmZyddlmZWnek
rCdZnXdejfdYZdS(s(
Tests for L{twisted.internet._newtls}.
i(tunittest(t_newtlstBypassTLSTestscBs&eZdZesdZndZRS(s4
    Tests for the L{_newtls._BypassTLS} class.
    s<Couldn't import _newtls, perhaps pyOpenSSL is old or missingcstgdtffdY}tj||}|j|jgt}|j||j|gdS(s
        C{_BypassTLS.loseConnection} calls C{loseConnection} on the base
        class, while preserving any default argument in the base class'
        C{loseConnection} implementation.
        t
FakeTransportcseZfdZRS(csj|dS(N(tappend(tselft	_connDone(tresult(sE/usr/lib/python2.7/dist-packages/twisted/internet/test/test_newtls.pytloseConnection!s(t__name__t
__module__R((tdefaultR(sE/usr/lib/python2.7/dist-packages/twisted/internet/test/test_newtls.pyR sN(tobjectRt
_BypassTLSRtassertEqual(RRtbypasst
notDefault((RRsE/usr/lib/python2.7/dist-packages/twisted/internet/test/test_newtls.pyttest_loseConnectionPassThroughs	
	
(R	R
t__doc__RtskipR(((sE/usr/lib/python2.7/dist-packages/twisted/internet/test/test_newtls.pyRs	N(	Rt
twisted.trialRttwisted.internetRtImportErrortNonetTestCaseR(((sE/usr/lib/python2.7/dist-packages/twisted/internet/test/test_newtls.pyt<module>s