From f4c76fb60439de0730a9e991403668a1b46e0191 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 11 Apr 2010 06:58:33 +0000 Subject: [PATCH] Fixed #13298 -- Modified test assertion to ensure that javascript variables aren't mistakenly identified as 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 --- tests/regressiontests/admin_views/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("Awesomeness level:")