'import error: manage.py builtin commands shows useful diagnostic info
when settings with import errors is provided (#14130).'

def test_import_error(self):

    self.write_settings_with_import_error('settings.py')
    args = ['check', 'admin_scripts']
    (out, err) = self.run_manage(args)
    self.assertNoOutput(out)
    self.assertOutput(err, 'No    module    named')
    self.assertOutput(err, 'foo42bar')
