              e.exception.chain[-1].tried[0][0].template_name,
              'template_loader/missing.html',
          )
  
      def test_select_template_tries_all_engines_before_names(self):
          template = select_template(["template_loader/goodbye.html",
                                      "template_loader/hello.html"])
          self.assertEqual(template.render(), "Goodbye! (Django templates)\n")
 
</s> remove             e.exception.tried[-1][0].template_name,
 </s> add             e.exception.chain[-1].tried[0][0].template_name, </s> remove             e.exception.tried[-1][0].template_name,
 </s> add             e.exception.chain[-1].tried[0][0].template_name,
        self.assertEqual(e.exception.chain[-1].backend.name, 'django')
              e.exception.chain[-1].tried[0][0].template_name,
              'template_loader/missing.html',
          )
        self.assertEqual(e.exception.chain[-1].backend.name, 'django')
  
      def test_select_template_tries_all_engines_before_names(self):
          template = select_template(["template_loader/goodbye.html",
                                      "template_loader/hello.html"])
          self.assertEqual(template.render(), "Goodbye! (Django templates)\n")
keep keep add keep keep keep keep keep
 Fixed #24119, #24120 -- Formalized debug integration for template backends. 
tests/template_loader/tests.py