#NEWLINE# @ mock . patch ( 'debile.master.keyrings.run_command' , return_value = ( 'subject=emailAddress=email2\nSHA1 Fingerprint=00XX00' , 0 , 0 ) ) #NEWLINE# def test_import_ssl_successful( self , mock ) : #NEWLINE# #INDENT# fingerprint = import_ssl ( 'tests/resources/keyring' , 'certdata' ) #NEWLINE# os . remove ( 'tests/resources/keyring' ) #NEWLINE# self . assertEquals ( fingerprint , '00XX00' )