#NEWLINE# def test_conn_no_fingerprint( instance ) : #NEWLINE# #INDENT# instance . config [ 'host' ] = 'localhost' #NEWLINE# with patch ( 'ploy.common.log' ) as LogMock : #NEWLINE# #INDENT# with pytest . raises ( SystemExit ) : #NEWLINE# #INDENT# instance . conn #NEWLINE# #UNINDENT# #UNINDENT# assert ( instance . error . call_args_list == [ ( ( "Couldn't connect to plain-instance:foo." , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( ( 'No fingerprint set in config.' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ] )