Skip to content

Commit f4c76fb

Browse files
committed
Fixed #13298 -- Modified test assertion to ensure that javascript variables aren't mistakenly identified as <input> HTML tags. Thanks to mk for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12946 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 736afb4 commit f4c76fb

File tree

1 file changed

+1
-1
lines changed
  • tests/regressiontests/admin_views

1 file changed

+1
-1
lines changed

tests/regressiontests/admin_views/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ def test_readonly_get(self):
19561956
self.assertNotContains(response, 'name="posted"')
19571957
# 3 fields + 2 submit buttons + 4 inline management form fields, + 2
19581958
# hidden fields for inlines + 1 field for the inline + 2 empty form
1959-
self.assertEqual(response.content.count("input"), 14)
1959+
self.assertEqual(response.content.count("<input"), 14)
19601960
self.assertContains(response, formats.localize(datetime.date.today()))
19611961
self.assertContains(response,
19621962
"<label>Awesomeness level:</label>")

0 commit comments

Comments
 (0)