def test_redundant_load(self): plugins = libipk.plugins.Plugins() plugins.load("tests/libipk/plugins") self.assertRaises(ImportError, plugins.load, "tests/libipk/plugins")
def test_redundant_load(self): plugins = libipk.plugins.Plugins() plugins.load('tests/libipk/plugins') self.assertRaises(ImportError, plugins.load, 'tests/libipk/plugins')
def test_basic_load(self): plugins = libipk.plugins.Plugins() plugins.load("tests/libipk/plugins") self.assertEqual(plugins.plugins["BasicPlugin"], BasicPlugin) self.assertEqual(plugins.plugins["AnotherPlugin"], AnotherPlugin)
def test_basic_load(self): plugins = libipk.plugins.Plugins() plugins.load('tests/libipk/plugins') self.assertEqual(plugins.plugins["BasicPlugin"], BasicPlugin) self.assertEqual(plugins.plugins["AnotherPlugin"], AnotherPlugin)