                  "Only subclasses of Django SimpleTestCase*"):
              decorated = override_settings(TEST='override')(UnittestTestCaseSubclass)
  
      def test_signal_callback_context_manager(self):
          self.assertRaises(AttributeError, getattr, settings, 'TEST')
          with self.settings(TEST='override'):
              self.assertEqual(self.testvalue, 'override')
          self.assertEqual(self.testvalue, None)
  
      @override_settings(TEST='override')
 
</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') </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')
                  "Only subclasses of Django SimpleTestCase*"):
              decorated = override_settings(TEST='override')(UnittestTestCaseSubclass)
  
      def test_signal_callback_context_manager(self):
        with self.assertRaises(AttributeError):
            getattr(settings, 'TEST')
          with self.settings(TEST='override'):
              self.assertEqual(self.testvalue, 'override')
          self.assertEqual(self.testvalue, None)
  
      @override_settings(TEST='override')
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