#NEWLINE# def testLoadPemGeneric( self ) : #NEWLINE# #INDENT# 'Test LoadPemGeneric().' #NEWLINE# header = 'BEGIN' #NEWLINE# footer = 'END' #NEWLINE# input = '\n\n\n-----BEGIN-----\nhello\n-----END-----\n\n\n' #NEWLINE# expected = [ '-----BEGIN-----' , 'hello' , '-----END-----' ] #NEWLINE# self . assertEqual ( expected , x509 . LoadPemGeneric ( input , header , footer ) )