Example #1
0
 def setUp(self):
     super(GooglePlusTest, self).setUp()
     self.auth_entity = oauth_googleplus.GooglePlusAuth(
         id='my_string_id',
         user_json=json.dumps({
             'displayName': 'Bob',
         }),
         creds_json=CREDS_JSON)
     self.googleplus = googleplus.GooglePlus(auth_entity=self.auth_entity)
Example #2
0
 def setUp(self):
   super(GooglePlusTest, self).setUp()
   self.handler.messages = []
   self.auth_entity = oauth_googleplus.GooglePlusAuth(
     id='my_string_id',
     creds_json=gr_test_googleplus.CREDS_JSON,
     user_json=json.dumps({'id': '987',
                           'displayName': 'Mr. G P',
                           'url': 'http://mr/g/p',
                           'image': {'url': 'http://pi.ct/ure?sz=50'},
                           }))
   self.auth_entity.put()
   self.gp = GooglePlusPage.new(self.handler, auth_entity=self.auth_entity)
Example #3
0
 def setUp(self):
   super(GooglePlusTest, self).setUp()
   self.auth_entity = oauth_googleplus.GooglePlusAuth(
     id='my_string_id',
     user_json=json.dumps({
         'displayName': 'Bob',
         }),
     creds_json=json.dumps({
         'access_token': 'my token',
         'client_id': appengine_config.GOOGLE_CLIENT_ID,
         'client_secret': appengine_config.GOOGLE_CLIENT_SECRET,
         'refresh_token': 'my refresh token',
         'token_expiry': '',
         'token_uri': '',
         'user_agent': '',
         'invalid': '',
         }))
   self.googleplus = googleplus.GooglePlus(auth_entity=self.auth_entity)