      def test_settings_delete(self):
          settings.TEST = 'test'
          self.assertEqual('test', settings.TEST)
          del settings.TEST
          self.assertRaises(AttributeError, getattr, settings, 'TEST')
  
      def test_settings_delete_wrapped(self):
          self.assertRaises(TypeError, delattr, settings, '_wrapped')
  
      def test_override_settings_delete(self):
 
</s> remove         self.assertRaises(AttributeError, getattr, settings, 'TEST')
 </s> add         with self.assertRaises(AttributeError):
            getattr(settings, 'TEST') </s> remove         self.assertRaises(TypeError, delattr, settings, '_wrapped')
 </s> add         with self.assertRaises(TypeError):
            delattr(settings, '_wrapped') </s> remove         self.assertRaises(AttributeError, getattr, settings, 'TEST')
 </s> add         with self.assertRaises(AttributeError):
            getattr(settings, 'TEST') </s> remove         self.assertRaises(AttributeError, getattr, settings, 'TEST')
 </s> add         with self.assertRaises(AttributeError):
            getattr(settings, 'TEST') </s> remove         self.assertRaises(AttributeError, getattr, settings, 'TEST')
 </s> add         with self.assertRaises(AttributeError):
            getattr(settings, 'TEST')
        with self.assertRaises(AttributeError):
            getattr(settings, 'TEST')
      def test_settings_delete(self):
          settings.TEST = 'test'
          self.assertEqual('test', settings.TEST)
          del settings.TEST
        with self.assertRaises(AttributeError):
            getattr(settings, 'TEST')
  
      def test_settings_delete_wrapped(self):
          self.assertRaises(TypeError, delattr, settings, '_wrapped')
  
      def test_override_settings_delete(self):
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/settings_tests/tests.py