#NEWLINE# def test_force_to_run_plugin_with_interval_parameter( self ) : #NEWLINE# #INDENT# params = dict ( self . test_params_default , ** { #NEWLINE# #INDENT# 'Interval' : 2 , #NEWLINE# #UNINDENT# } ) #NEWLINE# plugin = server_plugins . Plugin ( name = self . test_plugin_name , params = params ) #NEWLINE# n = plugin . next_run #NEWLINE# plugin . forced = True #NEWLINE# plugin . run ( ) #NEWLINE# time . sleep ( 0.5 ) #NEWLINE# assert plugin . current_run #NEWLINE# assert ( type ( plugin . current_run ) . __name__ == 'PluginWorker' ) #NEWLINE# assert ( n == plugin . next_run ) #NEWLINE# assert plugin . forced