#NEWLINE# def test_publish_reply_ignores_InconsistencyError( self ) : #NEWLINE# #INDENT# mailbox = pidbox . Mailbox ( 'test_reply__collect' ) ( self . connection ) #NEWLINE# with patch ( 'kombu.pidbox.Producer' ) as Producer : #NEWLINE# #INDENT# producer = Producer . return_value = Mock ( name = 'producer' ) #NEWLINE# producer . publish . side_effect = InconsistencyError ( ) #NEWLINE# mailbox . _publish_reply ( { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } , mailbox . reply_exchange , mailbox . oid , 'foo' ) #NEWLINE# producer . publish . assert_called ( )