#NEWLINE# def test_insured_custom_errback( self ) : #NEWLINE# #INDENT# ( conn , pool , fun , insured ) = self . get_insured_mocks ( ) #NEWLINE# custom_errback = Mock ( ) #NEWLINE# common . insured ( pool , fun , ( 2 , 2 ) , { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } , errback = custom_errback ) #NEWLINE# conn . ensure_connection . assert_called_with ( errback = custom_errback )