#NEWLINE# @ implementation #NEWLINE# def test_feed_indexof_large( self ) : #NEWLINE# #INDENT# assert ( self . test_feed . count ( ) == 0 ) #NEWLINE# activity_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for i in range ( 150 ) : #NEWLINE# #INDENT# moment = ( datetime . datetime . now ( ) - datetime . timedelta ( seconds = i ) ) #NEWLINE# activity = self . activity_class ( i , LoveVerb , i , i , time = i ) #NEWLINE# activity_dict [ i ] = activity #NEWLINE# #UNINDENT# self . test_feed . insert_activities ( activity_dict . values ( ) ) #NEWLINE# self . test_feed . add_many ( activity_dict . values ( ) ) #NEWLINE# time . sleep ( 0.1 ) #NEWLINE# activity = activity_dict [ 110 ] #NEWLINE# index_of = self . test_feed . index_of ( activity . serialization_id ) #NEWLINE# self . assertEqual ( index_of , 110 )