예제 #1
0
 def test_redundant_load(self):
     plugins = libipk.plugins.Plugins()
     plugins.load("tests/libipk/plugins")
     self.assertRaises(ImportError, plugins.load, "tests/libipk/plugins")
예제 #2
0
 def test_redundant_load(self):
     plugins = libipk.plugins.Plugins()
     plugins.load('tests/libipk/plugins')
     self.assertRaises(ImportError, plugins.load, 'tests/libipk/plugins')
예제 #3
0
    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)
예제 #4
0
    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)