def test_redirect_url(self):
        s = self.client.session
        s['exit_users_pk'] = [
            ['1', 'django.contrib.auth.backends.ModelBackend'],
        ]
        s.save()
        with self.settings(SU_LOGOUT_REDIRECT_URL='/foo/bar'):
            response = self.client.get(reverse('su_logout'))
        self.assertEqual(response.status_code, 302)
        self.assertTrue('/foo/bar' in response['Location'])
Ensure logout redirect url setting respected
dataset/ETHPy150Open adamcharnock/django-su/django_su/tests/test_views.py/LogoutViewTestCase.test_redirect_url