Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit f4c76fb60439de0730a9e991403668a1b46e0191 1 parent 736afb4
Russell Keith-Magee authored
2  tests/regressiontests/admin_views/tests.py
@@ -1956,7 +1956,7 @@ def test_readonly_get(self):
1956 1956
         self.assertNotContains(response, 'name="posted"')
1957 1957
         # 3 fields + 2 submit buttons + 4 inline management form fields, + 2
1958 1958
         # 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)
1960 1960
         self.assertContains(response, formats.localize(datetime.date.today()))
1961 1961
         self.assertContains(response,
1962 1962
             "<label>Awesomeness level:</label>")

0 notes on commit f4c76fb

Please sign in to comment.
Something went wrong with that request. Please try again.