test.SimpleTestCase.assertTemplateNotUsed()

SimpleTestCase.assertTemplateNotUsed(response, template_name, msg_prefix='') [source]

Asserts that the template with the given name was not used in rendering the response.

You can use this as a context manager in the same way as assertTemplateUsed().

doc_Django
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.