#NEWLINE# def test_run_invalid_module( self ) : #NEWLINE# #INDENT# worker = server_plugins . PluginWorker ( ** self . conf_worker ) #NEWLINE# module = 'InvalidModule' #NEWLINE# with pytest . raises ( ImportError ) as exc_info : #NEWLINE# #INDENT# worker . run_module ( self ) #NEWLINE# #UNINDENT# assert ( 'No module named InvalidModule' in exc_info . value )