Module Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq NameLoad Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Assign NameStore Call NameLoad Str Assign NameStore Dict Str Str Str Str Str NameLoad FunctionDef arguments args defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad NameLoad decorator_list Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num Index Str Assert CompareEq NameLoad Call AttributeLoad NameLoad attr Str Assert CompareEq NameLoad Str Assign NameStore Dict Str Str Str Str Str Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str attr Str FunctionDef arguments args defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad NameLoad decorator_list Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num Index Str Assert CompareEq NameLoad Call AttributeLoad NameLoad attr Str Assert CompareEq NameLoad Str finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Assign NameStore Call NameLoad Str FunctionDef arguments args defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword Num Assert CompareEq NameLoad Dict decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad Str FunctionDef arguments args defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword Num decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIs NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq NameLoad Dict Str NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq NameLoad ListLoad decorator_list AttributeLoad NameLoad attr
N/A N/A base64 N/A json N/A os N/A tempfile N/A pytest N/A six sparkpost.tornado SparkPost SparkPostAPIException tornado ioloop utils AsyncClientMock N/A responses N/A AsyncClientMock test_success_send N/A N/A N/A N/A N/A N/A N/A responses add N/A responses POST https://api.sparkpost.com/api/v1/transmissions status 200 content_type application/json body {"results": "yay"} N/A sp N/A SparkPost fake-key N/A results N/A N/A N/A N/A ioloop IOLoop run_sync N/A N/A sp transmission send N/A N/A results yay N/A N/A responses activate test_success_send_with_attachments N/A N/A N/A N/A N/A N/A N/A test_content N/A N/A six u Hello 
World
 N/A N/A _ temp_file_path N/A N/A tempfile mkstemp N/A N/A open temp_file_path w temp_file N/A N/A N/A N/A temp_file write test_content N/A N/A N/A responses add N/A responses POST https://api.sparkpost.com/api/v1/transmissions status 200 content_type application/json body {"results": "yay"} N/A sp N/A SparkPost fake-key N/A attachment N/A name type filename test.txt text/plain temp_file_path send N/A N/A N/A N/A N/A N/A N/A N/A sp transmission send attachments N/A attachment N/A N/A results N/A N/A N/A N/A ioloop IOLoop run_sync send N/A request_params N/A N/A json loads N/A N/A N/A N/A responses calls N/A 0 request body N/A content N/A N/A base64 b64decode N/A N/A N/A N/A request_params N/A content N/A attachments N/A 0 N/A data N/A N/A test_content N/A N/A content decode ascii N/A N/A results yay N/A attachment N/A name type data test.txt text/plain N/A N/A N/A N/A base64 b64encode N/A N/A test_content encode ascii decode ascii send N/A N/A N/A N/A N/A N/A N/A N/A sp transmission send attachments N/A attachment N/A N/A results N/A N/A N/A N/A ioloop IOLoop run_sync send N/A request_params N/A N/A json loads N/A N/A N/A N/A responses calls N/A 1 request body N/A content N/A N/A base64 b64decode N/A N/A N/A N/A request_params N/A content N/A attachments N/A 0 N/A data N/A N/A test_content N/A N/A content decode ascii N/A N/A results yay N/A N/A N/A N/A os unlink temp_file_path N/A N/A responses activate test_fail_send N/A N/A N/A N/A N/A N/A N/A responses add N/A responses POST https://api.sparkpost.com/api/v1/transmissions status 500 content_type application/json body 
        {"errors": [{"message": "You failed", "description": "More Info"}]}
         N/A N/A N/A pytest raises SparkPostAPIException N/A N/A sp N/A SparkPost fake-key N/A N/A N/A N/A N/A ioloop IOLoop run_sync N/A N/A sp transmission send N/A N/A responses activate test_success_get N/A N/A N/A N/A N/A N/A N/A responses add N/A responses GET https://api.sparkpost.com/api/v1/transmissions/foobar status 200 content_type application/json body {"results": {"transmission": {}}} N/A sp N/A SparkPost fake-key send N/A N/A N/A N/A N/A N/A N/A N/A sp transmission get foobar N/A N/A results N/A N/A N/A N/A ioloop IOLoop run_sync send timeout 3 N/A N/A results N/A N/A N/A responses activate test_fail_get N/A N/A N/A N/A N/A N/A N/A responses add N/A responses GET https://api.sparkpost.com/api/v1/transmissions/foobar status 404 content_type application/json body 
        {"errors": [{"message": "cant find", "description": "where you go"}]}
         N/A N/A N/A pytest raises SparkPostAPIException N/A N/A sp N/A SparkPost fake-key send N/A N/A N/A N/A N/A N/A N/A N/A sp transmission get foobar N/A N/A N/A N/A N/A N/A ioloop IOLoop run_sync send timeout 3 N/A N/A responses activate test_nocontent_get N/A N/A N/A N/A N/A N/A N/A responses add N/A responses GET https://api.sparkpost.com/api/v1/transmissions status 204 content_type application/json body N/A sp N/A SparkPost fake-key N/A response N/A N/A N/A N/A ioloop IOLoop run_sync N/A N/A sp transmission list N/A N/A response True N/A N/A responses activate test_brokenjson_get N/A N/A N/A N/A N/A N/A N/A responses add N/A responses GET https://api.sparkpost.com/api/v1/transmissions status 200 content_type application/json body {"results": N/A N/A N/A pytest raises SparkPostAPIException N/A N/A sp N/A SparkPost fake-key N/A N/A N/A N/A N/A ioloop IOLoop run_sync N/A N/A sp transmission list N/A N/A responses activate test_noresults_get N/A N/A N/A N/A N/A N/A N/A responses add N/A responses GET https://api.sparkpost.com/api/v1/transmissions status 200 content_type application/json body {"ok": false} N/A sp N/A SparkPost fake-key N/A response N/A N/A N/A N/A ioloop IOLoop run_sync N/A N/A sp transmission list N/A N/A response N/A ok False N/A N/A responses activate test_success_list N/A N/A N/A N/A N/A N/A N/A responses add N/A responses GET https://api.sparkpost.com/api/v1/transmissions status 200 content_type application/json body {"results": []} N/A sp N/A SparkPost fake-key N/A response N/A N/A N/A N/A ioloop IOLoop run_sync N/A N/A sp transmission list N/A N/A response N/A N/A N/A responses activate