#NEWLINE# def test_override_settings_delete( self ) : #NEWLINE# #INDENT# '\n        Allow deletion of a setting in an overridden settings set (#18824)\n        ' #NEWLINE# previous_i18n = settings . USE_I18N #NEWLINE# previous_l10n = settings . USE_L10N #NEWLINE# with self . settings ( USE_I18N = False ) : #NEWLINE# #INDENT# del settings . USE_I18N #NEWLINE# with self . assertRaises ( AttributeError ) : #NEWLINE# #INDENT# getattr ( settings , 'USE_I18N' ) #NEWLINE# #UNINDENT# del settings . USE_L10N #NEWLINE# with self . assertRaises ( AttributeError ) : #NEWLINE# #INDENT# getattr ( settings , 'USE_L10N' ) #NEWLINE# #UNINDENT# self . assertNotIn ( 'USE_I18N' , dir ( settings ) ) #NEWLINE# self . assertNotIn ( 'USE_L10N' , dir ( settings ) ) #NEWLINE# #UNINDENT# self . assertEqual ( settings . USE_I18N , self ) #NEWLINE# self . assertEqual ( settings . USE_L10N , previous_l10n )