def test_egg5(self):
        egg_name = '%s/brokenapp.egg' % self.egg_dir
        sys.path.append(egg_name)
        self.assertRaises(ImportError, load_app, 'broken_app')
        try:
            load_app('broken_app')
        except ImportError, e:
            # Make sure the message is indicating the actual
            # problem in the broken app.
            self.assertTrue("modelz" in e.args[0])
Provides natural key method.
dataset/ETHPy150Open django-nonrel/django-nonrel/tests/regressiontests/app_loading/tests.py/EggLoadingTest.test_egg5--crossover with--dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/generic/managers.py/KeywordManager.get_by_natural_key