def test_import_plugin(self):
        plugin = lib.import_plugin("dummy")
        expected = "Dummy LittleChef plugin"
        self.assertEqual(plugin.__doc__, expected)

        # Should fail to import a bad plugin module
        self.assertRaises(SystemExit, lib.import_plugin, "bad")
Should import the given plugin
dataset/ETHPy150Open tobami/littlechef/tests/test_lib.py/TestLib.test_import_plugin