'manage.py validate reports an ImportError if an app\'s models.py raises one on import'

def test_broken_app(self):

    self.write_settings(u'settings.py', apps=[u'admin_scripts.broken_app'])
    args = [u'validate']
    (out, err) = self.run_manage(args)
    self.assertNoOutput(out)
    self.assertOutput(err, u'ImportError')
