              'template_loader/missing.html',
          )
  
      def test_render_to_string_with_list_tries_all_engines_before_names(self):
          content = render_to_string(["template_loader/goodbye.html",
                                      "template_loader/hello.html"])
          self.assertEqual(content, "Goodbye! (Django templates)\n")
 
</s> remove             e.exception.tried[-1][0].template_name,
 </s> add             e.exception.chain[1].tried[0][0].template_name,
            'template_loader/unknown.html',
        )
        self.assertEqual(e.exception.chain[1].backend.name, 'django')
        self.assertEqual(
            e.exception.chain[2].tried[0][0].template_name,
            'template_loader/missing.html',
        )
        self.assertEqual(e.exception.chain[2].backend.name, 'dummy')
        self.assertEqual(
            e.exception.chain[3].tried[0][0].template_name, </s> remove         with self.assertRaises(TemplateDoesNotExist):
 </s> add         with self.assertRaises(TemplateDoesNotExist) as e:
        self.assertEqual(e.exception.chain[3].backend.name, 'django')
              'template_loader/missing.html',
          )
        self.assertEqual(e.exception.chain[3].backend.name, 'django')
  
      def test_render_to_string_with_list_tries_all_engines_before_names(self):
          content = render_to_string(["template_loader/goodbye.html",
                                      "template_loader/hello.html"])
          self.assertEqual(content, "Goodbye! (Django templates)\n")
keep add keep keep keep keep keep
 Fixed #24119, #24120 -- Formalized debug integration for template backends. 
tests/template_loader/tests.py