I'm on the verge of testing attributes in response.context with django's own test client (in django.test.client
).
I get back 5 response.context
's. As it seems one for each template part, because when I remove a nested template part (e.g: {% include "sometemplate.html" %})
from the base template the amount of returned context's decreases.
The variables passed to template renderer are in response.context[0].dicts[0]
Is the name of the rendered template stored in the context object somewhere?