def test_logout_with_logged_google_user(self): self.set_current_user() response = logout.index(Mock()) self.assertIsInstance(response, RedirectResponse) self.assertEqual( 'https://www.google.com/accounts/Logout?continue=http%3A//testbed.example.com/', response.context)
def test_logout_without_logged_google_user(self): response = logout.index(Mock()) self.assertIsInstance(response, RedirectResponse) self.assertEqual('/', response.context)
def test_logout_with_logged_google_user(self): self.set_current_user() response = logout.index(Mock()) self.assertIsInstance(response, RedirectResponse) self.assertEqual('https://www.google.com/accounts/Logout?continue=http%3A//testbed.example.com/', response.context)