Beispiel #1
0
 def test_login_openid(self):
     user = self.register_activate_testuser()
     models.SocialUser(user=user.key,
                       provider='google',
                       uid='http://www.google.com/accounts/123').put()
     self._login_openid('google', uid='http://www.google.com/accounts/123')
     self.assert_user_logged_in(user_id=user.get_id())
Beispiel #2
0
    def test_login_twitter(self):
        user = self.register_activate_testuser()
        models.SocialUser(user=user.key, provider='twitter',
                          uid='7588892').put()

        self._test_login_twitter()

        self.assert_user_logged_in()