#NEWLINE# @ mock . patch ( 'appmetrics.meter.time' ) #NEWLINE# def test_tick( self , time_mod ) : #NEWLINE# #INDENT# self . meter . tick_all = mock . Mock ( ) #NEWLINE# time_mod . time . return_value = ( self . started_on + 2.0 ) #NEWLINE# self . meter . tick ( ) #NEWLINE# time_mod . time . return_value = ( self . started_on + 8.1 ) #NEWLINE# self . meter . tick ( ) #NEWLINE# time_mod . time . return_value = ( self . started_on + 18.2 ) #NEWLINE# self . meter . tick ( ) #NEWLINE# assert_equal ( self . meter . tick_all . call_args_list , [ mock . call ( 1 ) , mock . call ( 2 ) ] )