Module ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom 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 Call NameLoad keyword ListLoad Dict Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword ListLoad Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad 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 Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str 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 NameLoad 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 SubscriptLoad NameLoad Index Num NameLoad decorator_list Call NameLoad 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 SubscriptLoad NameLoad Index Num NameLoad decorator_list Call NameLoad 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 SubscriptLoad NameLoad Index Num NameLoad decorator_list Call NameLoad 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 SubscriptLoad NameLoad Index Num NameLoad decorator_list Call NameLoad Str 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 NameLoad NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad decorator_list Call NameLoad 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 SubscriptLoad NameLoad Index Num NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list 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 NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Str keyword Dict keyword NameLoad keyword NameLoad keyword Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Dict Str Str Str Num Str Num keyword NameLoad keyword Str decorator_list Call NameLoad Str 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 NameLoad NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str keyword Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str decorator_list
N/A mock Mock patch N/A unittest contextio.lib.resources.account Account contextio.lib.resources.contact Contact contextio.lib.resources.connect_token ConnectToken contextio.lib.resources.email_address EmailAddress contextio.lib.resources.message Message contextio.lib.resources.source Source contextio.lib.resources.thread Thread contextio.lib.resources.webhook WebHook contextio.lib.resources.file File contextio.lib.helpers ArgumentError TestAccount N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self account N/A Account N/A Mock spec N/A N/A id fake_id N/A test_post_updates_first_and_last_name N/A N/A self mock_post N/A N/A N/A N/A mock_post return_value True N/A params N/A first_name last_name Leeroy Jenkins N/A response N/A N/A N/A self account post params N/A N/A N/A self assertEqual N/A N/A self account first_name Leeroy N/A N/A N/A self assertEqual N/A N/A self account last_name Jenkins N/A N/A N/A mock_post assert_called_with all_args N/A first_name last_name params params N/A N/A N/A self assertTrue response N/A N/A patch contextio.lib.resources.base_resource.BaseResource.post test_get_connect_tokens_returns_list_of_connect_tokens 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 foobar N/A account_connect_tokens N/A N/A N/A self account get_connect_tokens N/A N/A N/A self assertEqual 1 N/A len account_connect_tokens N/A N/A N/A self assertIsInstance N/A account_connect_tokens N/A 0 ConnectToken N/A N/A N/A self assertIsInstance N/A N/A account_connect_tokens N/A 0 account Account N/A N/A patch contextio.lib.resources.base_resource.BaseResource._request_uri test_get_contacts_returns_list_of_contacts N/A N/A self mock_get N/A N/A N/A N/A mock_get return_value N/A matches N/A N/A email foo@bar.com N/A account_contacts N/A N/A N/A self account get_contacts N/A N/A N/A self assertEqual 1 N/A len account_contacts N/A N/A N/A self assertIsInstance N/A account_contacts N/A 0 Contact N/A N/A patch contextio.lib.resources.base_resource.BaseResource._request_uri test_get_email_addresses_returns_list_of_EmailAddresses N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A N/A email fake_token N/A response N/A N/A N/A self account get_email_addresses N/A N/A N/A self assertIsInstance N/A response N/A 0 EmailAddress N/A N/A patch contextio.lib.resources.base_resource.BaseResource._request_uri test_get_files_returns_list_of_Files N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A N/A file_id foobar N/A response N/A N/A N/A self account get_files N/A N/A N/A self assertIsInstance N/A response N/A 0 File N/A N/A patch contextio.lib.resources.base_resource.BaseResource._request_uri test_get_messages_returns_list_of_Messages N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A N/A message_id foobar N/A response N/A N/A N/A self account get_messages N/A N/A N/A self assertIsInstance N/A response N/A 0 Message N/A N/A patch contextio.lib.resources.base_resource.BaseResource._request_uri test_get_sources_returns_list_of_Sources N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A N/A label foobar N/A response N/A N/A N/A self account get_sources N/A N/A N/A self assertIsInstance N/A response N/A 0 Source N/A N/A patch contextio.lib.resources.base_resource.BaseResource._request_uri test_get_sync_returns_a_dictionary N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A foo bar N/A response N/A N/A N/A self account get_sync N/A N/A N/A self assertIsInstance response dict N/A N/A patch contextio.lib.resources.base_resource.BaseResource._request_uri test_get_threads_returns_list_of_Threads N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A foo/bar N/A response N/A N/A N/A self account get_threads N/A N/A N/A self assertIsInstance N/A response N/A 0 Thread N/A N/A patch contextio.lib.resources.base_resource.BaseResource._request_uri test_get_webhooks_returns_list_of_WebHooks N/A N/A self mock_request N/A N/A N/A N/A mock_request return_value N/A N/A webhook_id foobar N/A response N/A N/A N/A self account get_webhooks N/A N/A N/A self assertIsInstance N/A response N/A 0 WebHook N/A N/A patch contextio.lib.resources.base_resource.BaseResource._request_uri test_post_connect_token_requires_callback_url N/A N/A self N/A N/A N/A N/A N/A self assertRaises ArgumentError N/A N/A N/A N/A N/A self account post_connect_token N/A test_post_email_address_requires_email_address N/A N/A self N/A N/A N/A N/A N/A self assertRaises ArgumentError N/A N/A N/A N/A N/A self account post_email_address N/A test_post_email_address_returns_EmailAddress N/A N/A self mock_post N/A N/A N/A N/A mock_post return_value N/A email fake@email.com N/A email_address N/A N/A N/A self account post_email_address email_address fake@email.com N/A N/A N/A self assertIsInstance email_address EmailAddress N/A N/A patch contextio.lib.resources.base_resource.BaseResource.post test_post_message_requires_certain_args N/A N/A self mock_post N/A N/A N/A all_args N/A dst_source dst_folder message flag_seen flag_answered flag_flagged flag_deleted flag_draft N/A req_args N/A dst_source dst_folder message N/A N/A N/A N/A self account post_message N/A N/A N/A mock_post assert_called_with all_args all_args headers N/A Content-Type multipart/form-data params N/A required_args req_args return_bool False uri messages N/A N/A patch contextio.lib.resources.base_resource.BaseResource.post test_post_source_requires_certain_args N/A N/A self mock_post N/A N/A N/A all_args N/A email server username port type use_ssl origin_ip expunge_on_deleted_flag sync_all_folders sync_folders sync_flags raw_file_list password provider_refresh_token provider_consumer_key callback_url status_callback_url N/A req_args N/A email server username port type use_ssl N/A N/A N/A N/A self account post_source N/A N/A N/A mock_post assert_called_with return_bool False all_args all_args params N/A use_ssl type port 1 IMAP 993 required_args req_args uri sources N/A N/A patch contextio.lib.resources.base_resource.BaseResource.post test_post_source_returns_Source_object N/A N/A self mock_post N/A N/A N/A N/A mock_post return_value N/A label foobar N/A source N/A N/A N/A self account post_source N/A N/A N/A self assertIsInstance source Source N/A N/A patch contextio.lib.resources.base_resource.BaseResource.post test_post_source_returns_False_if_creation_failed N/A N/A self mock_post N/A N/A N/A N/A mock_post return_value N/A success False N/A response N/A N/A N/A self account post_source N/A N/A N/A self assertFalse response N/A N/A patch contextio.lib.resources.base_resource.BaseResource.post test_post_sync_calls_request_uri_with_correct_args N/A N/A self mock_request N/A N/A N/A N/A N/A N/A self account post_sync N/A N/A N/A mock_request assert_called_with sync method POST N/A N/A patch contextio.lib.resources.base_resource.BaseResource._request_uri test_post_webhook_requires_args N/A N/A self N/A N/A N/A N/A N/A self assertRaises ArgumentError N/A N/A N/A N/A N/A self account post_webhook N/A test_post_webhook_returns_WebHook_object N/A N/A self mock_post N/A N/A N/A N/A mock_post return_value N/A success webhook_id True foobar N/A webhook N/A N/A N/A self account post_webhook N/A N/A N/A self assertIsInstance webhook WebHook N/A N/A patch contextio.lib.resources.base_resource.BaseResource.post test_post_webhook_returns_False_if_creation_failed N/A N/A self mock_post N/A N/A N/A N/A mock_post return_value N/A success False N/A response N/A N/A N/A self account post_webhook N/A N/A N/A self assertFalse response N/A N/A patch contextio.lib.resources.base_resource.BaseResource.post N/A