Module Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Call NameLoad Str Call NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore ListLoad Call NameLoad Str Call NameLoad AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ImportFrom alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr keyword ListLoad Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr keyword ListLoad Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Call AttributeLoad Str attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Call AttributeLoad Str attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Num Call AttributeLoad NameLoad attr Dict Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A json N/A unittest django.conf.urls include url django.core exceptions django http django test N/A mock oauth2client.client FlowExchangeError OAuth2WebServerFlow N/A django.conf oauth2client.contrib django_util oauth2client.contrib.django_util decorators oauth2client.contrib.django_util site oauth2client.contrib.django_util storage oauth2client.contrib.django_util views six.moves http_client six.moves.urllib parse N/A urlpatterns N/A N/A url ^oauth2/ N/A include N/A site urls N/A urlpatterns N/A N/A url ^oauth2/ N/A include N/A site urls OAuth2SetupTest N/A N/A unittest TestCase N/A test_settings_initialize N/A N/A self clientsecrets N/A N/A N/A N/A N/A N/A django conf settings GOOGLE_OAUTH2_CLIENT_SECRETS_JSON file.json N/A N/A N/A clientsecrets loadfile return_value N/A N/A clientsecrets TYPE_WEB N/A client_id client_secret myid hunter2 N/A oauth2_settings N/A N/A django_util OAuth2Settings N/A N/A django conf settings N/A N/A N/A self assertTrue N/A N/A clientsecrets loadfile called N/A N/A N/A self assertEqual N/A oauth2_settings client_id myid N/A N/A N/A self assertEqual N/A oauth2_settings client_secret hunter2 N/A N/A N/A mock patch oauth2client.contrib.django_util.clientsecrets test_settings_initialize_invalid_type N/A N/A self clientsecrets N/A N/A N/A N/A N/A N/A django conf settings GOOGLE_OAUTH2_CLIENT_SECRETS_JSON file.json N/A N/A N/A clientsecrets loadfile return_value N/A wrong_type N/A client_id client_secret myid hunter2 N/A N/A N/A self assertRaises ValueError N/A N/A django_util OAuth2Settings __init__ N/A N/A object __new__ N/A django_util OAuth2Settings N/A N/A django conf settings N/A N/A N/A mock patch oauth2client.contrib.django_util.clientsecrets test_no_settings N/A N/A self clientsecrets N/A N/A N/A N/A N/A N/A django conf settings GOOGLE_OAUTH2_CLIENT_SECRETS_JSON None N/A N/A N/A N/A django conf settings GOOGLE_OAUTH2_CLIENT_SECRET None N/A N/A N/A N/A django conf settings GOOGLE_OAUTH2_CLIENT_ID None N/A N/A N/A self assertRaises N/A exceptions ImproperlyConfigured N/A N/A django_util OAuth2Settings __init__ N/A N/A object __new__ N/A django_util OAuth2Settings N/A N/A django conf settings N/A N/A N/A mock patch oauth2client.contrib.django_util.clientsecrets test_no_session_middleware N/A N/A self clientsecrets N/A N/A N/A old_classes N/A N/A N/A django conf settings MIDDLEWARE_CLASSES N/A N/A N/A N/A django conf settings MIDDLEWARE_CLASSES N/A N/A N/A N/A self assertRaises N/A exceptions ImproperlyConfigured N/A N/A django_util OAuth2Settings __init__ N/A N/A object __new__ N/A django_util OAuth2Settings N/A N/A django conf settings N/A N/A N/A N/A django conf settings MIDDLEWARE_CLASSES old_classes N/A N/A N/A mock patch oauth2client.contrib.django_util.clientsecrets N/A TestWithSession N/A N/A test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self factory N/A N/A test RequestFactory django.contrib.sessions.backends.file SessionStore N/A store N/A SessionStore N/A N/A N/A store save N/A N/A self session store N/A N/A OAuth2EnabledDecoratorTest N/A TestWithSession N/A test_no_credentials_without_credentials N/A N/A self N/A N/A N/A request N/A N/A N/A self factory get /test N/A N/A request session N/A self session test_view N/A N/A request N/A N/A N/A N/A N/A http HttpResponse test N/A N/A decorators oauth_enabled N/A response N/A test_view request N/A N/A N/A self assertEquals N/A response status_code N/A http_client OK N/A N/A N/A self assertIsNotNone N/A request oauth N/A N/A N/A self assertFalse N/A N/A N/A request oauth has_credentials N/A N/A N/A self assertIsNone N/A N/A request oauth http N/A test_has_credentials_in_storage N/A N/A self OAuth2Credentials N/A N/A N/A request N/A N/A N/A self factory get /test N/A N/A request session N/A N/A mock MagicMock N/A credentials_mock N/A N/A mock Mock scopes N/A set N/A N/A N/A django conf settings GOOGLE_OAUTH2_SCOPES N/A N/A N/A credentials_mock has_scopes return_value True N/A N/A credentials_mock invalid False N/A N/A N/A OAuth2Credentials from_json return_value credentials_mock test_view N/A N/A request N/A N/A N/A N/A N/A http HttpResponse test N/A N/A decorators oauth_enabled N/A response N/A test_view request N/A N/A N/A self assertEquals N/A response status_code N/A http_client OK N/A N/A N/A self assertEquals N/A response content test N/A N/A N/A self assertTrue N/A N/A N/A request oauth has_credentials N/A N/A N/A self assertIsNotNone N/A N/A request oauth http N/A N/A N/A mock patch oauth2client.contrib.dictionary_storage.OAuth2Credentials test_specified_scopes N/A N/A self OAuth2Credentials N/A N/A N/A request N/A N/A N/A self factory get /test N/A N/A request session N/A N/A mock MagicMock N/A credentials_mock N/A N/A mock Mock scopes N/A set N/A N/A N/A django conf settings GOOGLE_OAUTH2_SCOPES N/A N/A credentials_mock has_scopes True N/A N/A credentials_mock is_valid True N/A N/A N/A OAuth2Credentials from_json return_value credentials_mock test_view N/A N/A request N/A N/A N/A N/A N/A http HttpResponse hello world N/A N/A N/A decorators oauth_enabled scopes N/A additional-scope N/A response N/A test_view request N/A N/A N/A self assertEquals N/A response status_code N/A http_client OK N/A N/A N/A self assertIsNotNone N/A request oauth N/A N/A N/A self assertFalse N/A N/A N/A request oauth has_credentials N/A N/A N/A mock patch oauth2client.contrib.dictionary_storage.OAuth2Credentials N/A OAuth2RequiredDecoratorTest N/A TestWithSession N/A test_redirects_without_credentials N/A N/A self N/A N/A N/A request N/A N/A N/A self factory get /test N/A N/A request session N/A self session test_view N/A N/A request N/A N/A N/A N/A N/A http HttpResponse test N/A N/A decorators oauth_required N/A response N/A test_view request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseRedirect N/A N/A N/A self assertEquals N/A N/A N/A parse urlparse N/A response N/A Location path /oauth2/oauth2authorize/ N/A N/A N/A self assertTrue N/A return_url=%2Ftest N/A N/A N/A parse urlparse N/A response N/A Location query N/A N/A N/A self assertEquals N/A response status_code 302 N/A test_has_credentials_in_storage N/A N/A self UserOAuth2 N/A N/A N/A request N/A N/A N/A self factory get /test N/A N/A request session N/A N/A mock MagicMock test_view N/A N/A request N/A N/A N/A N/A N/A http HttpResponse test N/A N/A decorators oauth_required N/A my_user_oauth N/A N/A mock MagicMock N/A N/A UserOAuth2 return_value my_user_oauth N/A N/A N/A my_user_oauth has_credentials return_value True N/A response N/A test_view request N/A N/A N/A self assertEquals N/A response status_code N/A http_client OK N/A N/A N/A self assertEquals N/A response content test N/A N/A N/A mock patch oauth2client.contrib.django_util.UserOAuth2 autospec True test_has_credentials_in_storage_no_scopes N/A N/A self OAuth2Credentials N/A N/A N/A request N/A N/A N/A self factory get /test N/A N/A request session N/A N/A mock MagicMock N/A credentials_mock N/A N/A mock Mock scopes N/A set N/A N/A N/A django conf settings GOOGLE_OAUTH2_SCOPES N/A N/A N/A credentials_mock has_scopes return_value False N/A N/A N/A OAuth2Credentials from_json return_value credentials_mock test_view N/A N/A request N/A N/A N/A N/A N/A http HttpResponse test N/A N/A decorators oauth_required N/A response N/A test_view request N/A N/A N/A self assertEquals N/A response status_code 302 N/A N/A N/A mock patch oauth2client.contrib.dictionary_storage.OAuth2Credentials test_specified_scopes N/A N/A self OAuth2Credentials N/A N/A N/A request N/A N/A N/A self factory get /test N/A N/A request session N/A N/A mock MagicMock N/A credentials_mock N/A N/A mock Mock scopes N/A set N/A N/A N/A django conf settings GOOGLE_OAUTH2_SCOPES N/A N/A credentials_mock has_scopes False N/A N/A N/A OAuth2Credentials from_json return_value credentials_mock test_view N/A N/A request N/A N/A N/A N/A N/A http HttpResponse hello world N/A N/A N/A decorators oauth_required scopes N/A additional-scope N/A response N/A test_view request N/A N/A N/A self assertEquals N/A response status_code 302 N/A N/A N/A mock patch oauth2client.contrib.dictionary_storage.OAuth2Credentials N/A Oauth2AuthorizeTest N/A TestWithSession N/A test_authorize_works N/A N/A self N/A N/A N/A request N/A N/A N/A self factory get oauth2/oauth2authorize N/A N/A request session N/A self session N/A response N/A N/A views oauth2_authorize request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseRedirect N/A test_authorize_works_explicit_return_url N/A N/A self N/A N/A N/A request N/A N/A N/A self factory get oauth2/oauth2authorize data N/A return_url /return_endpoint N/A N/A request session N/A self session N/A response N/A N/A views oauth2_authorize request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseRedirect N/A N/A Oauth2CallbackTest N/A TestWithSession N/A setUp N/A N/A self N/A N/A N/A mycallback N/A mycallback N/A N/A mock Mock N/A N/A N/A N/A super Oauth2CallbackTest self setUp N/A N/A self CSRF_TOKEN token N/A N/A self RETURN_URL http://return-url.com N/A N/A self fake_state N/A csrf_token return_url scopes N/A self CSRF_TOKEN N/A self RETURN_URL N/A N/A N/A django conf settings GOOGLE_OAUTH2_SCOPES N/A test_callback_works N/A N/A self pickle N/A N/A N/A request N/A N/A N/A self factory get oauth2/oauth2callback data N/A state code N/A N/A json dumps N/A self fake_state 123 N/A N/A N/A self session N/A google_oauth2_csrf_token N/A self CSRF_TOKEN N/A flow N/A OAuth2WebServerFlow client_id clientid client_secret clientsecret scope N/A email state N/A N/A json dumps N/A self fake_state redirect_uri N/A N/A request build_absolute_uri oauth2/oauth2callback N/A N/A N/A self session N/A N/A N/A google_oauth2_flow_{0} format N/A self CSRF_TOKEN N/A N/A pickle dumps flow N/A N/A flow step2_exchange N/A N/A mock Mock N/A N/A N/A pickle loads return_value flow N/A N/A request session N/A self session N/A response N/A N/A views oauth2_callback request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseRedirect N/A N/A N/A self assertEquals N/A response status_code 302 N/A N/A N/A self assertEquals N/A response N/A Location N/A self RETURN_URL N/A N/A N/A mock patch oauth2client.contrib.django_util.views.pickle test_callback_handles_bad_flow_exchange N/A N/A self pickle N/A N/A N/A request N/A N/A N/A self factory get oauth2/oauth2callback data N/A state code N/A N/A json dumps N/A self fake_state 123 N/A N/A N/A self session N/A google_oauth2_csrf_token N/A self CSRF_TOKEN N/A flow N/A OAuth2WebServerFlow client_id clientid client_secret clientsecret scope N/A email state N/A N/A json dumps N/A self fake_state redirect_uri N/A N/A request build_absolute_uri oauth2/oauth2callback N/A N/A N/A self session N/A N/A N/A google_oauth2_flow_{0} format N/A self CSRF_TOKEN N/A N/A pickle dumps flow local_throws N/A N/A code N/A N/A N/A N/A FlowExchangeError test N/A N/A N/A flow step2_exchange local_throws N/A N/A N/A pickle loads return_value flow N/A N/A request session N/A self session N/A response N/A N/A views oauth2_callback request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseBadRequest N/A N/A N/A mock patch oauth2client.contrib.django_util.views.pickle test_error_returns_bad_request N/A N/A self N/A N/A N/A request N/A N/A N/A self factory get oauth2/oauth2callback data N/A error There was an error in your authorization. N/A response N/A N/A views oauth2_callback request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseBadRequest N/A N/A N/A self assertTrue N/A Authorization failed N/A response content N/A test_no_session N/A N/A self N/A N/A N/A request N/A N/A N/A self factory get oauth2/oauth2callback data N/A code state 123 N/A N/A json dumps N/A self fake_state N/A N/A request session N/A self session N/A response N/A N/A views oauth2_callback request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseBadRequest N/A N/A N/A self assertEquals N/A response content No existing session for this flow. N/A test_missing_state_returns_bad_request N/A N/A self N/A N/A N/A request N/A N/A N/A self factory get oauth2/oauth2callback data N/A code 123 N/A N/A N/A self session N/A google_oauth2_csrf_token token N/A N/A request session N/A self session N/A response N/A N/A views oauth2_callback request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseBadRequest N/A test_bad_state N/A N/A self N/A N/A N/A request N/A N/A N/A self factory get oauth2/oauth2callback data N/A code state 123 N/A N/A json dumps N/A wrong state N/A N/A N/A self session N/A google_oauth2_csrf_token token N/A N/A request session N/A self session N/A response N/A N/A views oauth2_callback request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseBadRequest N/A N/A N/A self assertEquals N/A response content Invalid state parameter. N/A test_bad_csrf N/A N/A self N/A N/A N/A request N/A N/A N/A self factory get oauth2/oauth2callback data N/A state code N/A N/A json dumps N/A self fake_state 123 N/A N/A N/A self session N/A google_oauth2_csrf_token WRONG TOKEN N/A N/A request session N/A self session N/A response N/A N/A views oauth2_callback request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseBadRequest N/A N/A N/A self assertEquals N/A response content Invalid CSRF token. N/A test_no_saved_flow N/A N/A self N/A N/A N/A request N/A N/A N/A self factory get oauth2/oauth2callback data N/A state code N/A N/A json dumps N/A self fake_state 123 N/A N/A N/A self session N/A google_oauth2_csrf_token N/A self CSRF_TOKEN N/A N/A N/A self session N/A N/A N/A google_oauth2_flow_{0} format N/A self CSRF_TOKEN None N/A N/A request session N/A self session N/A response N/A N/A views oauth2_callback request N/A N/A N/A self assertTrue N/A isinstance response N/A http HttpResponseBadRequest N/A N/A N/A self assertEquals N/A response content Missing Oauth2 flow. N/A N/A MockObjectWithSession N/A object N/A __init__ N/A N/A self session N/A N/A N/A N/A self session session N/A N/A StorageTest N/A TestWithSession N/A test_session_delete N/A N/A self N/A N/A N/A N/A N/A self session N/A N/A storage _CREDENTIALS_KEY test_val N/A request N/A MockObjectWithSession N/A self session N/A django_storage N/A N/A storage get_storage request N/A N/A N/A django_storage delete N/A N/A N/A self assertIsNone N/A N/A N/A self session get N/A storage _CREDENTIALS_KEY N/A test_session_delete_nothing N/A N/A self N/A N/A N/A request N/A MockObjectWithSession N/A self session N/A django_storage N/A N/A storage get_storage request N/A N/A N/A django_storage delete N/A N/A