Exemplo n.º 1
0
 def test_plugin_manager(self):
     """Testing PluginManager: basic behaviour"""
     self.config["plugin.internal.log"] = True
     x = PluginManager(self.config, self.channel)
     assert x.plugins[0].__class__.__name__ == "LogPlugin"
     x.plugins = [TestingPlugin(self.config, self.channel)]
     x.start_all()
     assert len(x) == 1
     assert len([i for i in x]) == 1
     x.stop_all()
Exemplo n.º 2
0
 def test_plugin_manager(self):
     """Testing PluginManager: basic behaviour"""
     self.config["plugin.internal.log"] = True
     x = PluginManager(self.config, self.channel)
     assert x.plugins[0].__class__.__name__ == "LogPlugin"
     x.plugins = [TestingPlugin(self.config, self.channel)]
     x.start_all()
     assert len(x) == 1
     assert len([i for i in x]) == 1
     x.stop_all()
Exemplo n.º 3
0
 def test_plugin_manager_loop(self):
     """Testing PluginManager: waiting loop"""
     x = PluginManager(self.config, self.channel)
     x.loop(1000, 0)
Exemplo n.º 4
0
 def test_plugin_manager_loop(self):
     """Testing PluginManager: waiting loop"""
     x = PluginManager(self.config, self.channel)
     x.loop(1000, 0)