def test_valid_get(self):
        s = self.client.session
        s['exit_users_pk'] = [
            ['1', 'django.contrib.auth.backends.ModelBackend'],
        ]
        s.save()
        response = self.client.get(reverse('su_logout'))
        self.assertEqual(response.status_code, 302)
        self.assertIn(auth.SESSION_KEY, self.client.session)
        self.assertEqual(str(self.client.session[auth.SESSION_KEY]), str(self.authorized_user.id))
Ensure user can logout via get
dataset/ETHPy150Open adamcharnock/django-su/django_su/tests/test_views.py/LogoutViewTestCase.test_valid_get