      def test_no_template_source_loaders(self):
          """
          Make sure if you don't specify a template, the debug view doesn't blow up.
          """
          self.assertRaises(TemplateDoesNotExist, self.client.get, '/render_no_template/')
  
      @override_settings(ROOT_URLCONF='view_tests.default_urls')
      def test_default_urlconf_template(self):
          """
          Make sure that the default URLconf template is shown shown instead
 
</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(ImproperlyConfigured, view.get_template_names)
 </s> add         with self.assertRaises(ImproperlyConfigured):
            view.get_template_names() </s> remove         self.assertRaises(FieldError, Poll.objects.get,
            choice__name__exact="This is the answer")
 </s> add         with self.assertRaises(FieldError):
            Poll.objects.get(choice__name__exact="This is the answer") </s> remove         self.assertRaises(ImproperlyConfigured, Sitemap().get_urls)
 </s> add         with self.assertRaises(ImproperlyConfigured):
            Sitemap().get_urls() </s> remove         self.assertRaises(TypeError, lambda: p['has_previous'])
 </s> add         with self.assertRaises(TypeError):
            p['has_previous']
        with self.assertRaises(TemplateDoesNotExist):
            self.client.get('/render_no_template/')
      def test_no_template_source_loaders(self):
          """
          Make sure if you don't specify a template, the debug view doesn't blow up.
          """
        with self.assertRaises(TemplateDoesNotExist):
            self.client.get('/render_no_template/')
  
      @override_settings(ROOT_URLCONF='view_tests.default_urls')
      def test_default_urlconf_template(self):
          """
          Make sure that the default URLconf template is shown shown instead
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/view_tests/tests/test_debug.py