Esempio n. 1
0
 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)
Esempio n. 2
0
 def test_logout_without_logged_google_user(self):
     response = logout.index(Mock())
     self.assertIsInstance(response, RedirectResponse)
     self.assertEqual('/', response.context)
Esempio n. 3
0
 def test_logout_without_logged_google_user(self):
     response = logout.index(Mock())
     self.assertIsInstance(response, RedirectResponse)
     self.assertEqual('/', response.context)
Esempio n. 4
0
 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)