~ubuntu-branches/ubuntu/saucy/python-django/saucy-security

« back to all changes in this revision

Viewing changes to django/contrib/auth/tests/views.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2013-02-24 10:28:08 UTC
  • mfrom: (1.1.20) (4.4.26 sid)
  • Revision ID: package-import@ubuntu.com-20130224102808-mtc8rkfx42wro0oz
Tags: 1.4.5-1
* New upstream maintenance release dropping some undesired .pyc files
  and fixing a documentation link.
* High urgency due to former security updates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
        self.assertEqual(len(mail.outbox), 1)
108
108
        self.assertEqual("staffmember@example.com", mail.outbox[0].from_email)
109
109
 
 
110
    @override_settings(ALLOWED_HOSTS=['adminsite.com'])
110
111
    def test_admin_reset(self):
111
112
        "If the reset view is marked as being for admin, the HTTP_HOST header is used for a domain override."
112
113
        response = self.client.post('/admin_password_reset/',