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()
def test_plugin_manager_loop(self): """Testing PluginManager: waiting loop""" x = PluginManager(self.config, self.channel) x.loop(1000, 0)