#NEWLINE# def test_get_snakeoil_paths( self ) : #NEWLINE# #INDENT# ( cert , key ) = self . config . _get_snakeoil_paths ( ) #NEWLINE# self . assertTrue ( os . path . exists ( cert ) ) #NEWLINE# self . assertTrue ( os . path . exists ( key ) ) #NEWLINE# with open ( cert ) as cert_file : #NEWLINE# #INDENT# OpenSSL . crypto . load_certificate ( OpenSSL . crypto . FILETYPE_PEM , cert_file . read ( ) ) #NEWLINE# #UNINDENT# with open ( key ) as key_file : #NEWLINE# #INDENT# OpenSSL . crypto . load_privatekey ( OpenSSL . crypto . FILETYPE_PEM , key_file . read ( ) )