Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Call NameLoad ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call NameLoad Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr keyword Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call NameLoad Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr keyword Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call NameLoad Dict Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr keyword Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call NameLoad Dict Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr keyword Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr keyword Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call NameLoad Dict Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr keyword Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A __future__ unicode_literals N/A datetime django.contrib.auth get_user_model django.core.urlresolvers reverse django.test TestCase RequestFactory django.utils timezone compat urlencode models get_application_model AccessToken RefreshToken settings oauth2_settings test_utils TestCaseUtils N/A Application N/A get_application_model N/A UserModel N/A get_user_model BaseTest N/A TestCaseUtils TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self factory N/A RequestFactory N/A N/A self test_user N/A N/A N/A UserModel objects create_user test_user test@user.com 123456 N/A N/A self dev_user N/A N/A N/A UserModel objects create_user dev_user dev@user.com 123456 N/A N/A self application N/A Application name Test Application redirect_uris http://localhost http://example.com http://example.it user N/A self dev_user client_type N/A Application CLIENT_CONFIDENTIAL authorization_grant_type N/A Application GRANT_AUTHORIZATION_CODE N/A N/A N/A N/A self application save N/A N/A oauth2_settings _SCOPES N/A read write N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self application delete N/A N/A N/A N/A self test_user delete N/A N/A N/A N/A self dev_user delete N/A N/A TestRevocationView N/A BaseTest N/A test_revoke_access_token N/A N/A self N/A N/A N/A N/A tok N/A N/A N/A AccessToken objects create user N/A self test_user token 1234567890 application N/A self application expires N/A N/A N/A timezone now N/A N/A datetime timedelta days 1 scope read write N/A query_string N/A urlencode N/A client_id client_secret token N/A N/A self application client_id N/A N/A self application client_secret N/A tok token N/A url N/A N/A {url}?{qs} format url N/A reverse oauth2_provider:revoke-token qs query_string N/A response N/A N/A N/A self client post url N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A response content N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A AccessToken objects filter id N/A tok id exists N/A test_revoke_access_token_public N/A N/A self N/A N/A N/A public_app N/A Application name Test Application redirect_uris http://localhost http://example.com http://example.it user N/A self dev_user client_type N/A Application CLIENT_PUBLIC authorization_grant_type N/A Application GRANT_AUTHORIZATION_CODE N/A N/A N/A public_app save N/A tok N/A N/A N/A AccessToken objects create user N/A self test_user token 1234567890 application public_app expires N/A N/A N/A timezone now N/A N/A datetime timedelta days 1 scope read write N/A query_string N/A urlencode N/A client_id token N/A public_app client_id N/A tok token N/A url N/A N/A {url}?{qs} format url N/A reverse oauth2_provider:revoke-token qs query_string N/A response N/A N/A N/A self client post url N/A N/A N/A self assertEqual N/A response status_code 200 N/A test_revoke_access_token_with_hint N/A N/A self N/A N/A N/A N/A tok N/A N/A N/A AccessToken objects create user N/A self test_user token 1234567890 application N/A self application expires N/A N/A N/A timezone now N/A N/A datetime timedelta days 1 scope read write N/A query_string N/A urlencode N/A client_id client_secret token token_type_hint N/A N/A self application client_id N/A N/A self application client_secret N/A tok token access_token N/A url N/A N/A {url}?{qs} format url N/A reverse oauth2_provider:revoke-token qs query_string N/A response N/A N/A N/A self client post url N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A AccessToken objects filter id N/A tok id exists N/A test_revoke_access_token_with_invalid_hint N/A N/A self N/A N/A N/A N/A tok N/A N/A N/A AccessToken objects create user N/A self test_user token 1234567890 application N/A self application expires N/A N/A N/A timezone now N/A N/A datetime timedelta days 1 scope read write N/A query_string N/A urlencode N/A client_id client_secret token token_type_hint N/A N/A self application client_id N/A N/A self application client_secret N/A tok token bad_hint N/A url N/A N/A {url}?{qs} format url N/A reverse oauth2_provider:revoke-token qs query_string N/A response N/A N/A N/A self client post url N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A AccessToken objects filter id N/A tok id exists N/A test_revoke_refresh_token N/A N/A self N/A N/A N/A N/A tok N/A N/A N/A AccessToken objects create user N/A self test_user token 1234567890 application N/A self application expires N/A N/A N/A timezone now N/A N/A datetime timedelta days 1 scope read write N/A rtok N/A N/A N/A RefreshToken objects create user N/A self test_user token 999999999 application N/A self application access_token tok N/A query_string N/A urlencode N/A client_id client_secret token N/A N/A self application client_id N/A N/A self application client_secret N/A rtok token N/A url N/A N/A {url}?{qs} format url N/A reverse oauth2_provider:revoke-token qs query_string N/A response N/A N/A N/A self client post url N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A RefreshToken objects filter id N/A rtok id exists N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A AccessToken objects filter id N/A N/A rtok access_token id exists N/A test_revoke_token_with_wrong_hint N/A N/A self N/A N/A N/A 
        From the revocation rfc, `Section 4.1.2`_ :

        If the server is unable to locate the token using the given hint,
        it MUST extend its search across all of its supported token types
        .. _`Section 4.1.2`: http://tools.ietf.org/html/draft-ietf-oauth-revocation-11#section-4.1.2
         N/A tok N/A N/A N/A AccessToken objects create user N/A self test_user token 1234567890 application N/A self application expires N/A N/A N/A timezone now N/A N/A datetime timedelta days 1 scope read write N/A query_string N/A urlencode N/A client_id client_secret token token_type_hint N/A N/A self application client_id N/A N/A self application client_secret N/A tok token refresh_token N/A url N/A N/A {url}?{qs} format url N/A reverse oauth2_provider:revoke-token qs query_string N/A response N/A N/A N/A self client post url N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertFalse N/A N/A N/A N/A N/A AccessToken objects filter id N/A tok id exists N/A N/A