Mercurial > universal-identity-relyer
changeset 11:727b82d4b596
changed /request to just /
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sat, 12 Jun 2010 20:27:48 -0700 |
parents | 1686a3266557 |
children | 63ea847bfa75 |
files | test_twitter_client.py twitter_client.py |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/test_twitter_client.py Sat Jun 12 20:10:54 2010 -0700 +++ b/test_twitter_client.py Sat Jun 12 20:27:48 2010 -0700 @@ -19,10 +19,10 @@ def test_404(): """ >>> _, _, _, toc = app() - >>> environ = dict(PATH_INFO='/', QUERY_STRING='') + >>> environ = dict(PATH_INFO='/blah', QUERY_STRING='') >>> toc(environ, Mock('start_response')) Called start_response('404 Not Found', [('Content-Type', 'text/plain')]) - ['path not found: /'] + ['path not found: /blah'] """ pass @@ -37,7 +37,7 @@ ... 'oauth_callback_confirmed=true' ... ) >>> oauth.Client.mock_returns = client - >>> environ = dict(PATH_INFO='/request', QUERY_STRING='', SERVER_NAME='foo.com', SERVER_PORT='80') + >>> environ = dict(PATH_INFO='/', QUERY_STRING='', SERVER_NAME='foo.com', SERVER_PORT='80') >>> environ['wsgi.url_scheme'] = 'http' >>> toc(environ, Mock('start_response')) Called oauth.Client('mock consumer')
--- a/twitter_client.py Sat Jun 12 20:10:54 2010 -0700 +++ b/twitter_client.py Sat Jun 12 20:27:48 2010 -0700 @@ -19,7 +19,7 @@ path = environ['PATH_INFO'] qs = environ['QUERY_STRING'] - if path == '/request': + if path == '/': # Step 1: Get a request token. This is a temporary token that is used for # having the user authorize an access token and to sign the request to obtain # said access token.