def test_logout_with_custom_redirect_argument(self):
        self.login()
        response = self.client.get('/logout/custom_query/?follow=/somewhere/')
        self.assertEqual(response.status_code, 302)
        self.assertTrue(response['Location'].endswith('/somewhere/'))
        self.confirm_logged_out()
Logout with custom query string redirects to specified resource
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/auth/tests/views.py/LogoutTest.test_logout_with_custom_redirect_argument