'If there is an import error in the actual cms_plugin file it should
raise the ImportError rather than silently swallowing it -
in opposition to the ImportError if the file \'cms_plugins.py\' doesn\'t
exist.'

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)
