Beispiel #1
0
 def expect_indieauth_check(self, state=''):
   TestCase.expect_requests_post(
     self, indieauth.INDIEAUTH_URL, 'me=http://snarfed.org', data={
       'me': 'http://snarfed.org',
       'state': state,
       'code': 'my_code',
       'client_id': appengine_config.INDIEAUTH_CLIENT_ID,
       'redirect_uri': 'http://localhost/instagram/callback',
     })
Beispiel #2
0
 def expect_indieauth_check(self):
     return TestCase.expect_requests_post(
         self,
         indieauth.INDIEAUTH_URL,
         'me=http://snarfed.org',
         data={
             'me': 'http://snarfed.org',
             'state': 'towkin',
             'code': 'my_code',
             'client_id': indieauth.INDIEAUTH_CLIENT_ID,
             'redirect_uri': 'http://localhost/indieauth/callback',
         })