'Loading an app from an egg that has an import error in its models module raises that error'

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 as e:
        self.assertTrue(('modelz' in e.args[0]))
