#NEWLINE# def test_sequence_interevent( self ) : #NEWLINE# #INDENT# _delta = timedelta ( hours = 2 , minutes = 13 ) #NEWLINE# self . user . records = random_burst ( 100 , interaction = 'text' , delta = _delta ) #NEWLINE# interevent = bc . individual . interevent_time ( self . user , groupby = None ) #NEWLINE# self . assertEqual ( interevent [ 'allweek' ] [ 'allday' ] [ 'text' ] [ 'mean' ] , _delta . total_seconds ( ) ) #NEWLINE# self . assertEqual ( interevent [ 'allweek' ] [ 'allday' ] [ 'text' ] [ 'std' ] , 0 ) #NEWLINE# _delta = timedelta ( hours = 10 , minutes = 10 ) #NEWLINE# self . user . records = random_burst ( 100 , interaction = 'text' , delta = _delta ) #NEWLINE# interevent = bc . individual . interevent_time ( self . user , groupby = None ) #NEWLINE# self . assertEqual ( interevent [ 'allweek' ] [ 'allday' ] [ 'text' ] [ 'mean' ] , _delta . total_seconds ( ) )