

def test_plugin_view(self):
    'Should load plugin when module exists'
    plugins = loader.import_plugins(['monitoring'])
    self.assertEqual(len(plugins), 1)
    inject = getattr(plugins['monitoring'], 'inject')
    self.assertFalse(getattr(inject, '__is_view__', False))
    links = getattr(plugins['monitoring'], 'links')
    self.assertTrue(getattr(links, '__is_view__'))

dataset/ETHPy150Open edelight/kitchen/kitchen/backends/tests.py TestPlugins.test_plugin_view/original