def test_import_broken_plugin(self):
        new_apps = ['cms.test_utils.project.brokenpluginapp']
        with self.settings(INSTALLED_APPS=new_apps):
            plugin_pool.discovered = False
            self.assertRaises(ImportError, plugin_pool.discover_plugins)
If there is an import error in the actual cms_plugin file it should
dataset/ETHPy150Open divio/django-cms/cms/tests/test_plugins.py/BrokenPluginTests.test_import_broken_plugin