Add ability to assert number of times a template is used for assertTemplateUsed
For instance, using django-autocomplete-light a template from this package is used for each field where you define as an autocomplete field. It'd be nice can check for the times the template is used:
SimpleTestCase.assertTemplateUsed(response, template_name, count=1, msg_prefix=)
Change History
(5)
Summary: |
Times a template is used using assertTemplateUsed → Add ability to assert number of times a template is used for assertTemplateUsed
|
Triage Stage: |
Unreviewed → Accepted
|
Version: |
1.6 → master
|
Owner: |
changed from nobody to Jake Rothenbuhler
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Pull request: https://github.com/django/django/pull/2549