@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)

    # Skip any 500 handler action (like sending more mail...)
The flatpage template tag retrives unregistered prefixed flatpages by default
dataset/ETHPy150Open splunk/splunk-webframework/contrib/django/django/contrib/auth/tests/views.py/PasswordResetTest.test_admin_reset--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/contrib/flatpages/tests/templatetags.py/FlatpageTemplateTagTests.test_get_flatpages_with_prefix