Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
testing for mpoauth's weird refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hamblen committed Mar 31, 2010
1 parent 841e536 commit cb06b19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ def access_granted():
""" % get_token(config, 'access')

if config.has_section('access'):
# test mpoauth's creative "refresh" behavior
access_key, access_secret = get_token(config, 'access')
oauth_session = mucli.new_session(request_key=access_key, request_secret=access_secret)
print " member_id: %s" % oauth_session.fetch_access_token("")
assert access_key == oauth_session.access_token.key
assert access_secret == oauth_session.access_token.secret
access_granted()
else:
if config.has_section('request'):
Expand Down

0 comments on commit cb06b19

Please sign in to comment.