'If the reset view is marked as being for admin, the HTTP_HOST header is used for a domain override.'

@override_settings(ALLOWED_HOSTS=['adminsite.com'])
def test_admin_reset(self):

    response = self.client.post('/admin_password_reset/', {'email': 'staffmember@example.com'}, HTTP_HOST='adminsite.com')
    self.assertEqual(response.status_code, 302)
    self.assertEqual(len(mail.outbox), 1)
    self.assertTrue(('http://adminsite.com' in mail.outbox[0].body))
    self.assertEqual(settings.DEFAULT_FROM_EMAIL, mail.outbox[0].from_email)
