﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33400	assertTemplateUsed()/assertTemplateNotUsed() used as context managers ignore count and msg_prefix parameters.	karyon	Ad Timmering	"See [https://github.com/django/django/blob/cb383753c0e0eb52306e1024d32a782549c27e61/django/test/testcases.py#L659 the code of assertTemplateUsed]: if it's used as a context manager, the count parameter is entirely unused. The [https://docs.djangoproject.com/en/4.0/topics/testing/tools/#django.test.SimpleTestCase.assertTemplateUsed documentation on assertTemplateUsed] does not mention that.

The context manager capability was added in [https://github.com/django/django/commit/a678e9ea65 a678e9ea65] 10 years ago. The count parameter was added in [https://github.com/django/django/commit/17c18844561431aabed89c3bd48de951db7d13ab#diff-7833da5b45a68d00834388d97dd5c4413e3796497c7bc5e0cc2621b08a2d0df1R543 17c188445] 8 years ago."	Bug	closed	Testing framework	4.0	Normal	fixed		karyon	Ready for checkin	1	0	0	0	0	0
