def test_load_plugin_doesntexist(self): with self.assertRaises(PluginLoaderError): p = PluginLoader(self.plugin_doesntexist) instance = p.get_plugin(self.plugin1)
def test_load_plugin_wrong(self): p = PluginLoader(self.plugin_module) instance = p.get_plugin(self.plugin1) self.assertNotIsInstance(instance, Plugin2)