summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_views
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-04-11 06:58:33 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-04-11 06:58:33 +0000
commitf4c76fb60439de0730a9e991403668a1b46e0191 (patch)
tree3b99c017a9a4f50fb67f08d858bd5cce0c6d6a8e /tests/regressiontests/admin_views
parent736afb4705aa0556b1be3f635a49337a73cd6970 (diff)
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
Diffstat (limited to 'tests/regressiontests/admin_views')
-rw-r--r--tests/regressiontests/admin_views/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
index 9b21cbac33..8749fee5ce 100644
--- a/tests/regressiontests/admin_views/tests.py
+++ b/tests/regressiontests/admin_views/tests.py
@@ -1956,7 +1956,7 @@ class ReadonlyTest(TestCase):
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>")