#NEWLINE# def testVerifyCertificate( self ) : #NEWLINE# #INDENT# security . VerifyCertificate ( testutils . TestDataFilename ( 'cert1.pem' ) ) #NEWLINE# nonexist_filename = os . path . join ( self . tmpdir , 'does-not-exist' ) #NEWLINE# ( errcode , msg ) = security . VerifyCertificate ( nonexist_filename ) #NEWLINE# self . assertEqual ( errcode , constants . CV_ERROR ) #NEWLINE# invalid_cert = testutils . TestDataFilename ( 'bdev-net.txt' ) #NEWLINE# ( errcode , msg ) = security . VerifyCertificate ( invalid_cert ) #NEWLINE# self . assertEqual ( errcode , constants . CV_ERROR )