#NEWLINE# def test_add_entry_listener_item_added_include_value( self ) : #NEWLINE# #INDENT# collector = event_collector ( ) #NEWLINE# self . set . add_listener ( include_value = True , item_added = collector ) #NEWLINE# self . set . add ( 'item-value' ) #NEWLINE# def assert_event( ) : #NEWLINE# #INDENT# self . assertEqual ( len ( collector . events ) , 1 ) #NEWLINE# event = collector . events [ 0 ] #NEWLINE# self . assertEqual ( event . item , 'item-value' ) #NEWLINE# self . assertEqual ( event . event_type , ItemEventType . added ) #NEWLINE# #UNINDENT# self . assertTrueEventually ( collector , 5 )