From 482ba9246e1838378a7e320c247fa7338ca49b40 Mon Sep 17 00:00:00 2001 From: CHI Cheng Date: Wed, 2 May 2018 23:20:04 +1000 Subject: [2.0.x] Fixed #29375 -- Removed empty action attribute on HTML forms. Backport of 4660ce5a6930e07899ed083801845ee4c44c09df from master --- tests/test_utils/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_utils') diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index 80ee5a27b5..e2512920c1 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -695,15 +695,15 @@ class HTMLEqualTests(SimpleTestCase): def test_contains_html(self): response = HttpResponse(''' - This is a form:
+ This is a form:
''') self.assertNotContains(response, "") - self.assertContains(response, '
') + self.assertContains(response, '') self.assertContains(response, "", html=True) - self.assertNotContains(response, '', html=True) + self.assertNotContains(response, '', html=True) invalid_response = HttpResponse('''>''') -- cgit v1.3