Ticket #9381: 9383.diff
File 9383.diff, 756 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/tests/views.py
34 34 return self._read_signup_email(mail.outbox[0]) 35 35 36 36 def _read_signup_email(self, email): 37 urlmatch = re.search(r"https?:// [^/]*(/.*reset/\S*)", email.body)37 urlmatch = re.search(r"https?://.*(/.+/)", email.body) 38 38 self.assert_(urlmatch is not None, "No URL found in sent email") 39 return urlmatch.group(), urlmatch.groups()[0]39 return urlmatch.group(), "/reset" + urlmatch.groups()[0] 40 40 41 41 def test_confirm_valid(self): 42 42 url, path = self._test_confirm_start()