'Poisoned HTTP_HOST headers can\'t be used for reset emails'

@override_settings(DEBUG_PROPAGATE_EXCEPTIONS=True)
def test_poisoned_http_host(self):

    with patch_logger('django.security.DisallowedHost', 'error') as logger_calls:
        response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'}, HTTP_HOST='www.example:dr.frankenstein@evil.tld')
        self.assertEqual(response.status_code, 400)
        self.assertEqual(len(mail.outbox), 0)
        self.assertEqual(len(logger_calls), 1)
