def test_custom_su_login_url(self):
        self.client.login(username='authorized', password='pass')
        with self.settings(SU_LOGIN_REDIRECT_URL='/foo/bar'):
            response = self.client.post(
                reverse('login_as_user', args=[self.destination_user.id])
            )
        self.assertEqual(response.status_code, 302)
        self.assertTrue('/foo/bar' in response['Location'])
Constructor.  See class doc string.
dataset/ETHPy150Open adamcharnock/django-su/django_su/tests/test_views.py/LoginAsUserViewTestCase.test_custom_su_login_url--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/timeit.py/Timer.__init__