Browse files

Fixed #13298 -- Modified test assertion to ensure that javascript var…

…iables 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
  • Loading branch information...
1 parent 736afb4 commit f4c76fb60439de0730a9e991403668a1b46e0191 @freakboy3742 freakboy3742 committed Apr 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/regressiontests/admin_views/tests.py
View
2 tests/regressiontests/admin_views/tests.py
@@ -1956,7 +1956,7 @@ def test_readonly_get(self):
self.assertNotContains(response, 'name="posted"')
# 3 fields + 2 submit buttons + 4 inline management form fields, + 2
# hidden fields for inlines + 1 field for the inline + 2 empty form
- self.assertEqual(response.content.count("input"), 14)
+ self.assertEqual(response.content.count("<input"), 14)
self.assertContains(response, formats.localize(datetime.date.today()))
self.assertContains(response,
"<label>Awesomeness level:</label>")

0 comments on commit f4c76fb

Please sign in to comment.