#19172: test_poisoned_http_host* tests failing when having ADMINS settings
populated
-------------------------------------+-------------------------------------
     Reporter:  bernardofontes       |                    Owner:  claudep
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.auth         |                  Version:  1.4
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  unit tests, auth,    |             Triage Stage:  Accepted
  admin, mail                        |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  1                    |
-------------------------------------+-------------------------------------

Comment (by anonymous):

 I've just downloaded Django 1.3 from the official site and have the same
 problem. While status of this task is "fixed".
 Am I doing smth wrong?

 std output is below:

 ======================================================================
 FAIL: test_poisoned_http_host
 (django.contrib.auth.tests.views.PasswordResetTest)
 Poisoned HTTP_HOST headers can't be used for reset emails
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Library/Python/2.7/site-
 packages/django/contrib/auth/tests/views.py", line 99, in
 test_poisoned_http_host
     self.assertEqual(len(mail.outbox), 0)
 AssertionError: 1 != 0

 ======================================================================
 FAIL: test_poisoned_http_host_admin_site
 (django.contrib.auth.tests.views.PasswordResetTest)
 Poisoned HTTP_HOST headers can't be used for reset emails on admin views
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Library/Python/2.7/site-
 packages/django/contrib/auth/tests/views.py", line 109, in
 test_poisoned_http_host_admin_site
     self.assertEqual(len(mail.outbox), 0)
 AssertionError: 1 != 0

 ----------------------------------------------------------------------

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19172#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to