#NEWLINE# def test_no_raise_with_custom_identity( self , queue_consumer , mock_container ) : #NEWLINE# #INDENT# container = mock_container #NEWLINE# container . service_name = 'destservice' #NEWLINE# class BroadcastEventHandler ( EventHandler ) : #NEWLINE# #INDENT# broadcast_identifier = 'testbox' #NEWLINE# #UNINDENT# event_handler = BroadcastEventHandler ( 'srcservice' , 'eventtype' , handler_type = BROADCAST , reliable_delivery = True ) . bind ( container , 'foobar' ) #NEWLINE# assert ( mock_container . reliable_delivery is True )