'Test that the ``secure_required`` decorator does a permanent redirect
to a secured page.'

def test_secure_required(self):

    with self.settings(USERENA_USE_HTTPS=True):
        response = self.client.get(reverse('userena_signin'))
        self.assertEqual(response.status_code, 301)
        self.assertTrue(('https' in response.get('Location')))
