summaryrefslogtreecommitdiff
path: root/django/contrib
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2008-11-06 19:49:24 +0000
committerKaren Tracey <kmtracey@gmail.com>2008-11-06 19:49:24 +0000
commitbcd63cbfb0590a2e2bed3e4beab3f467279ad3db (patch)
tree35a45e1f97562e1747b0c6458f14e8f11afd11b0 /django/contrib
parent04354e1afcd5d4b4813282c4849017b89f66aa24 (diff)
Fixed #6160, #9111 -- Consistently apply conditional_escape to form errors and labels when outputing them as HTML.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9365 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib')
-rw-r--r--django/contrib/auth/tests/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/auth/tests/views.py b/django/contrib/auth/tests/views.py
index cf17b827e7..ec98cf07f7 100644
--- a/django/contrib/auth/tests/views.py
+++ b/django/contrib/auth/tests/views.py
@@ -16,7 +16,7 @@ class PasswordResetTest(TestCase):
response = self.client.get('/password_reset/')
self.assertEquals(response.status_code, 200)
response = self.client.post('/password_reset/', {'email': 'not_a_real_email@email.com'})
- self.assertContains(response, "That e-mail address doesn't have an associated user account")
+ self.assertContains(response, "That e-mail address doesn&#39;t have an associated user account")
self.assertEquals(len(mail.outbox), 0)
def test_email_found(self):
@@ -87,7 +87,7 @@ class PasswordResetTest(TestCase):
response = self.client.post(path, {'new_password1': 'anewpassword',
'new_password2':' x'})
self.assertEquals(response.status_code, 200)
- self.assert_("The two password fields didn't match" in response.content)
+ self.assert_("The two password fields didn&#39;t match" in response.content)
class ChangePasswordTest(TestCase):
@@ -147,7 +147,7 @@ class ChangePasswordTest(TestCase):
}
)
self.assertEquals(response.status_code, 200)
- self.assert_("The two password fields didn't match." in response.content)
+ self.assert_("The two password fields didn&#39;t match." in response.content)
def test_password_change_succeeds(self):
self.login()