          self.assertContains(response, "view_tests.views.Http404View", status_code=404)
  
      def test_view_exceptions(self):
          for n in range(len(except_args)):
              self.assertRaises(BrokenException, self.client.get,
                  reverse('view_exception', args=(n,)))
  
      def test_non_l10ned_numeric_ids(self):
          """
          Numeric IDs and fancy traceback context blocks line numbers shouldn't be localized.
          """
 
</s> remove         self.assertRaises(ImproperlyConfigured,
                          self.client.get,
                          '/syndication/articles/')
 </s> add         with self.assertRaises(ImproperlyConfigured):
            self.client.get('/syndication/articles/') </s> remove         self.assertRaises(CommandError, management.call_command, ('explode',))
 </s> add         with self.assertRaises(CommandError):
            management.call_command(('explode',)) </s> remove         self.assertRaises(ImproperlyConfigured, self.client.get, '/template/no_template/')
 </s> add         with self.assertRaises(ImproperlyConfigured):
            self.client.get('/template/no_template/') </s> remove         self.assertRaises(TemplateDoesNotExist, self.client.get, '/render_no_template/')
 </s> add         with self.assertRaises(TemplateDoesNotExist):
            self.client.get('/render_no_template/') </s> remove         self.assertRaises(AttributeError, self.client.get, "/dates/books/2008/oct/01/nopk/")
 </s> add         with self.assertRaises(AttributeError):
            self.client.get("/dates/books/2008/oct/01/nopk/")
            with self.assertRaises(BrokenException):
                self.client.get(reverse('view_exception', args=(n,)))
          self.assertContains(response, "view_tests.views.Http404View", status_code=404)
  
      def test_view_exceptions(self):
          for n in range(len(except_args)):
            with self.assertRaises(BrokenException):
                self.client.get(reverse('view_exception', args=(n,)))
            with self.assertRaises(BrokenException):
                self.client.get(reverse('view_exception', args=(n,)))
  
      def test_non_l10ned_numeric_ids(self):
          """
          Numeric IDs and fancy traceback context blocks line numbers shouldn't be localized.
          """
keep keep keep keep replace replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/view_tests/tests/test_debug.py