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

Commit cb06b19

Browse files
author
Nathan Hamblen
committed
testing for mpoauth's weird refresh
1 parent 841e536 commit cb06b19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ def access_granted():
7575
""" % get_token(config, 'access')
7676

7777
if config.has_section('access'):
78+
# test mpoauth's creative "refresh" behavior
79+
access_key, access_secret = get_token(config, 'access')
80+
oauth_session = mucli.new_session(request_key=access_key, request_secret=access_secret)
81+
print " member_id: %s" % oauth_session.fetch_access_token("")
82+
assert access_key == oauth_session.access_token.key
83+
assert access_secret == oauth_session.access_token.secret
7884
access_granted()
7985
else:
8086
if config.has_section('request'):

0 commit comments

Comments
 (0)