/usr/lib64/python2.6/site-packages/OpenSSL/test
NameSizeModeActions
test_crypto.py597380644editdlrm
test_crypto.pyc575600644editdlrm
test_crypto.pyo575600644editdlrm
test_rand.py22640644editdlrm
test_rand.pyc28530644editdlrm
test_rand.pyo28530644editdlrm
test_ssl.py307970644editdlrm
test_ssl.pyc292630644editdlrm
test_ssl.pyo291720644editdlrm
util.py48340644editdlrm
util.pyc55130644editdlrm
util.pyo55130644editdlrm
__init__.py1170644editdlrm
__init__.pyc2160644editdlrm
__init__.pyo2160644editdlrm
Edit: /usr/lib64/python2.6/site-packages/OpenSSL/test/util.pyo (5513B)
Ñò ð|ýJc @s†dZddkZddkZddkZddklZddklZddkZddk l Z l Z defd„ƒYZdS(s` Helpers for the OpenSSL test suite, largely copied from U{Twisted}. iÿÿÿÿN(tmktemp(tTestCase(tErrort_exception_from_error_queueRcBsteZdZd„Zd d„ZeZd d„ZeZd„Z e Z d Z d„Z d„Z d„Zd„ZRS( s„ L{TestCase} adds useful testing functionality beyond what is available from the standard library L{unittest.TestCase}. cCsÅ|idj o`x]|iD]N}tii|ƒoti|ƒqtii|ƒoti|ƒqqWny t ƒWnCt j o7}|i gfjo|i dt |ƒƒqÁnXdS(s» Clean up any files or directories created using L{TestCase.mktemp}. Subclasses must invoke this method if they override it or the cleanup will not occur. s)Left over errors in OpenSSL error queue: N(t_temporaryFilestNonetostpathtisdirtshutiltrmtreetexiststunlinkRRtargstfailtrepr(tselfttempte((s7/usr/lib64/python2.6/site-packages/OpenSSL/test/util.pyttearDowns  cCs5||j o$|i|pd||fƒ‚n|S(s Fail the test if C{first} is not C{second}. This is an obect-identity-equality test, not an object equality (i.e. C{__eq__}) test. @param msg: if msg is None, then the failure message will be '%r is not %r' % (first, second) s %r is not %r(tfailureException(Rtfirsttsecondtmsg((s7/usr/lib64/python2.6/site-packages/OpenSSL/test/util.pytfailUnlessIdentical+s $cCs5||jo$|i|pd||fƒ‚n|S(s  Fail the test if C{first} is C{second}. This is an obect-identity-equality test, not an object equality (i.e. C{__eq__}) test. @param msg: if msg is None, then the failure message will be '%r is %r' % (first, second) s%r is %r(R(RRRR((s7/usr/lib64/python2.6/site-packages/OpenSSL/test/util.pytfailIfIdentical:s $cOsxy|||Ž}WnB|j o }|S|idtiƒd|ifƒ‚nX|id|i|fƒ‚dS(s9 Fail the test unless calling the function C{f} with the given C{args} and C{kwargs} raises C{exception}. The failure will report the traceback and call stack of the unexpected exception. @param exception: exception type that is to be expected @param f: the function to call @return: The raised exception instance, if it is of the given type. @raise self.failureException: Raised if the function call does not raise an exception or if it raises an exception of a different type. s%s raised instead of %sis%s not raised (%r returned)N(Rtsystexc_infot__name__(Rt exceptiontfR tkwargstresulttinst((s7/usr/lib64/python2.6/site-packages/OpenSSL/test/util.pytfailUnlessRaisesIs   cCs@|idjo g|_ntddƒ}|ii|ƒ|S(sQ Pathetic substitute for twisted.trial.unittest.TestCase.mktemp. tdirt.N(RRRtappend(RR((s7/usr/lib64/python2.6/site-packages/OpenSSL/test/util.pyRgs  cOs|i||ŽS(N(t failUnless(Rtatkw((s7/usr/lib64/python2.6/site-packages/OpenSSL/test/util.pyt assertTruesscOs|i||ŽS(N(tfailIf(RR'R(((s7/usr/lib64/python2.6/site-packages/OpenSSL/test/util.pyt assertFalsewscGsO|i|i|ƒ|it|tƒƒ||Œ}|it|ƒ|ƒdS(s Perform various assertions about C{theType} to ensure that it is a well-defined type. This is useful for extension types, where it's pretty easy to do something wacky. If something about the type is unusual, an exception will be raised. @param theType: The type object about which to make assertions. @param name: A string giving the name of the type. @param constructionArgs: Positional arguments to use with C{theType} to create an instance of it. N(t assertEqualRR)t isinstancettypetassertIdentical(RttheTypetnametconstructionArgstinstance((s7/usr/lib64/python2.6/site-packages/OpenSSL/test/util.pytassertConsistentType|s  N(Rt __module__t__doc__RRRR/RtassertNotIdenticalR"t assertRaisesRRR)R+R4(((s7/usr/lib64/python2.6/site-packages/OpenSSL/test/util.pyRs      ( R6R Rtos.pathttempfileRtunittestRRtOpenSSL.cryptoRR(((s7/usr/lib64/python2.6/site-packages/OpenSSL/test/util.pyts