      def test_template_name_required(self):
          """
          A template view must provide a template name.
          """
          self.assertRaises(ImproperlyConfigured, self.client.get, '/template/no_template/')
  
      @require_jinja2
      def test_template_engine(self):
          """
          A template view may provide a template engine.
 
</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(TypeError, CustomizableView.as_view, foobar="value")
 </s> add         with self.assertRaises(TypeError):
            CustomizableView.as_view(foobar="value") </s> remove         self.assertRaises(IOError, self._get_file, filepath)
 </s> add         with self.assertRaises(IOError):
            self._get_file(filepath) </s> remove         self.assertRaises(exc, self.assertStaticRenders, path, result, **kwargs)
 </s> add         with self.assertRaises(exc):
            self.assertStaticRenders(path, result, **kwargs) </s> remove         self.assertRaises(ImproperlyConfigured, view.get_template_names)
 </s> add         with self.assertRaises(ImproperlyConfigured):
            view.get_template_names()
        with self.assertRaises(ImproperlyConfigured):
            self.client.get('/template/no_template/')
      def test_template_name_required(self):
          """
          A template view must provide a template name.
          """
        with self.assertRaises(ImproperlyConfigured):
            self.client.get('/template/no_template/')
  
      @require_jinja2
      def test_template_engine(self):
          """
          A template view may provide a template engine.
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/generic_views/test_base.py