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
2016-10-09 18:40:06
Comments
Leave a Comment

Please login to continue.