In the unittest
style, I can test that a page uses a particular template by calling assertTemplateUsed
. This is useful, for example, when Django inserts values through a template, so that I can't just test string equality.
How should I write the equivalent statement in pytest?
I've been looking in pytest-django but don't see how to do it.