﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9470	PasswordResetTest.test_email_not_found built in test chokes on apostrophe	sam@…	nobody	"This is my first bug report, so I apologize if it's cryptic :)

I get the following error when running django's built-in tests:


{{{
======================================================================
FAIL: Error is raised if the provided email address isn't currently registered
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Applications/Django/django-trunk/django/contrib/auth/tests/views.py"", line 21, in test_email_not_found
    self.assertContains(response, ""That e-mail address doesn't have an associated user account"")
  File ""/Applications/Django/django-trunk/django/test/testcases.py"", line 274, in assertContains
    ""Couldn't find '%s' in response"" % text)
AssertionError: Couldn't find 'That e-mail address doesn't have an associated user account' in response

----------------------------------------------------------------------

}}}


It seems the test is choking on the apostrophe.  Changing line 20 in django/contrib/auth/tests/views.py to the following solves the problem:
{{{
self.assertContains(response, ""That e-mail address doesn"")
}}}


or the following also works:

{{{
try:
	self.assertContains(response, ""That e-mail address doesn't have an associated user account"")
except:
	self.assertContains(response, ""That e-mail address doesn&#39;t have an associated user account."")
}}}
"		closed	Uncategorized	1.0		duplicate		sam@…	Unreviewed	0	0	0	0	0	0
