Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Dict Str Str Str Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A mock N/A unittest contextio.lib.v2_0 V2_0 contextio.lib errors contextio.lib.resources.account Account contextio.lib.resources.connect_token ConnectToken contextio.lib.resources.discovery Discovery contextio.lib.resources.oauth_provider OauthProvider TestV2_0 N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self api N/A V2_0 consumer_key foo consumer_secret bar N/A test_get_accounts_returns_list_of_Account_resources N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A id some_id N/A accounts N/A N/A N/A self api get_accounts N/A N/A N/A self assertEqual 1 N/A len accounts N/A N/A N/A self assertIsInstance N/A accounts N/A 0 Account N/A N/A N/A mock patch contextio.lib.api.Api._request_uri test_post_account_returns_Account_object N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A id some_id N/A account N/A N/A N/A self api post_account email fake@email.com N/A N/A N/A self assertIsInstance account Account N/A N/A N/A mock patch contextio.lib.api.Api._request_uri test_get_connect_tokens_returns_list_of_ConnectToken_resources_without_token N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A N/A token account fake_token N/A id account_id N/A connect_tokens N/A N/A N/A self api get_connect_tokens N/A N/A N/A self assertEqual 1 N/A len connect_tokens N/A N/A N/A self assertIsInstance N/A connect_tokens N/A 0 ConnectToken N/A N/A N/A mock patch contextio.lib.api.Api._request_uri test_get_connect_tokens_returns_dictionary_if_token_is_provided N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A token fake_token N/A connect_token N/A N/A N/A self api get_connect_tokens token fake_token N/A N/A N/A self assertEqual N/A token fake_token connect_token N/A N/A N/A mock patch contextio.lib.api.Api._request_uri test_post_connect_token_requires_callback_url N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A token fake_token N/A N/A N/A self assertRaises N/A errors ArgumentError N/A N/A N/A N/A N/A self api post_connect_token N/A N/A N/A mock patch contextio.lib.api.Api._request_uri test_post_connect_token_returns_ConnectToken N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A token fake_token N/A connect_token N/A N/A N/A self api post_connect_token callback_url http://some.callback.url N/A N/A N/A self assertIsInstance connect_token ConnectToken N/A N/A N/A mock patch contextio.lib.api.Api._request_uri test_get_discovery_returns_discovery_object N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A email fake@email.com N/A discovery N/A N/A N/A self api get_discovery email fake@email.com N/A N/A N/A self assertIsInstance discovery Discovery N/A N/A N/A mock patch contextio.lib.api.Api._request_uri test_get_discovery_requires_email_argument N/A N/A self mock_request N/A N/A N/A N/A N/A self assertRaises N/A errors ArgumentError N/A N/A N/A N/A N/A self api get_discovery N/A N/A N/A mock patch contextio.lib.api.Api._request_uri test_get_oauth_providers_returns_list_of_OauthProvider_objects N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A N/A provider_consumer_key 1234 N/A oauth_providers N/A N/A N/A self api get_oauth_providers N/A N/A N/A self assertEqual 1 N/A len oauth_providers N/A N/A N/A self assertIsInstance N/A oauth_providers N/A 0 OauthProvider N/A N/A N/A mock patch contextio.lib.api.Api._request_uri test_post_oauth_provider_returns_dictionary N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A provider_consumer_key 123 N/A oauth_provider N/A N/A N/A self api post_oauth_provider type VALIDOAUTHTYPE provider_consumer_key 1234 provider_consumer_secret 1234 N/A N/A N/A self assertEqual N/A provider_consumer_key 123 oauth_provider N/A N/A N/A mock patch contextio.lib.api.Api._request_uri test_post_oauth_provider_requires_type_provider_key_and_provider_secret N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A provider_consumer_key 123 N/A N/A N/A self assertRaises N/A errors ArgumentError N/A N/A N/A N/A N/A self api post_oauth_provider N/A N/A N/A mock patch contextio.lib.api.Api._request_uri N/A