      def test_get_template_not_found(self):
          with self.assertRaises(TemplateDoesNotExist) as e:
              get_template("template_loader/unknown.html")
          self.assertEqual(
              e.exception.tried[-1][0].template_name,
              'template_loader/unknown.html',
          )
  
      def test_select_template_first_engine(self):
          template = select_template(["template_loader/unknown.html",
 
</s> remove             e.exception.tried[0][0].template_name,
 </s> add             e.exception.chain[0].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, </s> remove             e.exception.tried[0][0].template_name,
 </s> add             e.exception.chain[0].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,
            e.exception.chain[-1].tried[0][0].template_name,
      def test_get_template_not_found(self):
          with self.assertRaises(TemplateDoesNotExist) as e:
              get_template("template_loader/unknown.html")
          self.assertEqual(
            e.exception.chain[-1].tried[0][0].template_name,
              'template_loader/unknown.html',
          )
  
      def test_select_template_first_engine(self):
          template = select_template(["template_loader/unknown.html",
keep keep keep keep replace keep keep keep keep keep
 Fixed #24119, #24120 -- Formalized debug integration for template backends. 
tests/template_loader/tests.py