Module Expr Str ImportFrom alias Import alias ImportFrom alias Import alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias Assign NameStore Dict Str Str Str Str Str Call NameLoad Str NameLoad Str Str Assign NameStore Str FunctionDef arguments args defaults body Expr Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str Str Str Str keyword NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Num keyword Dict Str Str Str Str Str Str keyword NameLoad decorator_list Call NameLoad NameLoad Assign NameStore NameLoad FunctionDef arguments args defaults body Global identifier Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr BinOpMult Num Num Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Dict Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Num Expr Call NameLoad NameLoad Num Str Expr Call NameLoad NameLoad NameLoad Str Global identifier Assign NameStore NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Dict Str Str Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Global identifier Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Dict Str Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Num Expr Call NameLoad NameLoad Num Expr Call NameLoad NameLoad Num Global identifier Assign NameStore NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Dict Str Str Str Str Str Str Num Str Dict Str Str NameLoad keyword Num keyword Num Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad CompareEq Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Dict Str Str keyword NameLoad keyword Num Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Str SubscriptLoad NameLoad Slice Num Num Expr Call NameLoad Str SubscriptLoad NameLoad Slice Num Num Expr Call NameLoad Str SubscriptLoad NameLoad Slice Num Num Expr Call NameLoad Str SubscriptLoad NameLoad Slice Num Num Expr Call NameLoad NameLoad SubscriptLoad NameLoad Slice Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Dict Str Str Str Str Str NameLoad Str NameLoad Str Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Dict Str Str Str Str Str NameLoad Str NameLoad Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Dict Str Str Str Str Str NameLoad Str NameLoad Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad Dict Str Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list
N/A N/A 
Tests for apns_proxy_server.worker
 binascii b2a_hex N/A mock Queue Queue N/A time nose.tools ok_ eq_ raises apns Frame Payload PayloadTooLargeError apns_proxy_server.worker SendWorkerThread N/A dummy_setting N/A task_queue name use_sandbox cert_file key_file N/A Queue test_thread True dummy.cert dummy.key N/A dummy_token 09ac5fe24292a611631994d5abb308e0e939a6551294c8b323337ca45f9ced06 test_create_instance N/A N/A N/A N/A N/A N/A ok_ N/A SendWorkerThread dummy_setting N/A test_create_payload N/A N/A N/A N/A N/A worker N/A SendWorkerThread dummy_setting N/A payload N/A N/A worker create_payload alert Hello content_available True N/A N/A ok_ N/A isinstance payload Payload N/A test_create_payload_with_dict_alert N/A N/A N/A N/A N/A worker N/A SendWorkerThread dummy_setting N/A payload N/A N/A worker create_payload alert N/A body action_loc_key Hello loc_key content_available True N/A N/A ok_ N/A isinstance payload Payload N/A test_create_payload_with_too_large_content N/A N/A N/A N/A N/A worker N/A SendWorkerThread dummy_setting N/A N/A N/A worker create_payload alert This is too large messageeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee sound default badge 999 custom N/A foo bar buz foooooooooooooooooooooooooooooooooooooooooooooooo barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr buzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz content_available True N/A N/A raises PayloadTooLargeError N/A has_called_check_method False test_add_frame_item N/A N/A N/A N/A N/A has_called_check_method N/A has_called_check_method False check_add_item_args N/A N/A token payload identifier expiry priority N/A N/A N/A default_expiry N/A N/A int N/A N/A time time N/A 60 60 N/A N/A eq_ token dummy_token N/A N/A eq_ N/A payload alert Hey N/A N/A eq_ N/A payload badge None N/A N/A eq_ N/A payload sound None N/A N/A eq_ N/A payload custom N/A N/A N/A eq_ N/A payload content_available False N/A N/A eq_ identifier 123 N/A N/A eq_ priority 10 priority should set default value when skipped N/A N/A eq_ expiry default_expiry expiry should set default value when skipped N/A has_called_check_method N/A has_called_check_method True N/A N/A worker N/A SendWorkerThread dummy_setting N/A N/A worker count 123 N/A frame N/A Frame N/A N/A frame add_item check_add_item_args N/A N/A N/A worker add_frame_item frame myapp dummy_token N/A alert Hey N/A N/A ok_ has_called_check_method N/A test_add_frame_item_with_full_args N/A N/A N/A N/A N/A has_called_check_method N/A has_called_check_method False check_add_item_args N/A N/A token payload identifier expiry priority N/A N/A N/A N/A eq_ token dummy_token N/A N/A eq_ N/A payload alert Wow N/A N/A eq_ N/A payload badge 50 N/A N/A eq_ N/A payload sound bell N/A N/A eq_ N/A payload custom N/A foo bar N/A N/A eq_ N/A payload content_available True N/A N/A eq_ identifier 1 N/A N/A eq_ priority 5 N/A N/A eq_ expiry 0 N/A has_called_check_method N/A has_called_check_method True N/A N/A worker N/A SendWorkerThread dummy_setting N/A N/A worker count 1 N/A frame N/A Frame N/A N/A frame add_item check_add_item_args N/A N/A N/A worker add_frame_item frame myapp dummy_token N/A alert badge sound custom content_available Wow 50 bell N/A foo bar True expiry 0 priority 5 N/A N/A ok_ has_called_check_method N/A test_frame_content N/A N/A N/A N/A N/A worker N/A SendWorkerThread dummy_setting N/A frame N/A Frame N/A N/A ok_ N/A N/A len N/A frame frame_data 0 N/A N/A N/A worker add_frame_item frame myapp dummy_token N/A alert hello expiry None priority 10 N/A hex_frame N/A b2a_hex N/A str N/A frame frame_data N/A N/A eq_ 02 N/A hex_frame N/A 0 2 N/A N/A eq_ 00000051 N/A hex_frame N/A 2 10 N/A N/A eq_ 01 N/A hex_frame N/A 10 12 N/A N/A eq_ 0020 N/A hex_frame N/A 12 16 N/A N/A eq_ dummy_token N/A hex_frame N/A 16 80 N/A test_increment_count N/A N/A N/A N/A N/A q N/A Queue N/A worker N/A SendWorkerThread N/A task_queue name use_sandbox cert_file key_file q test_thread True dummy.cert dummy.key N/A N/A worker count 99 N/A N/A worker send N/A N/A mock Mock N/A N/A worker check_error N/A N/A mock Mock N/A N/A N/A q put N/A appid token aps unittest dummy_token N/A alert Hello N/A N/A N/A q put N/A appid token aps unittest dummy_token N/A alert Woooooooooo N/A N/A N/A worker main N/A N/A eq_ 101 N/A worker count worker.count should incremented by messages N/A test_send N/A N/A N/A N/A N/A 
    send method should called
     N/A q N/A Queue N/A worker N/A SendWorkerThread N/A task_queue name use_sandbox cert_file key_file q test_thread True dummy.cert dummy.key N/A N/A worker send N/A N/A mock Mock N/A N/A worker check_error N/A N/A mock Mock N/A N/A N/A q put N/A appid token aps unittest dummy_token N/A alert sound Hello default N/A N/A N/A worker main N/A N/A eq_ True N/A N/A worker send called N/A N/A eq_ True N/A N/A worker check_error called N/A test_send_with_test N/A N/A N/A N/A N/A 
    When all messages are test=True, send method never called
     N/A q N/A Queue N/A worker N/A SendWorkerThread N/A task_queue name use_sandbox cert_file key_file q test_thread True dummy.cert dummy.key N/A N/A worker send N/A N/A mock Mock N/A N/A worker check_error N/A N/A mock Mock N/A N/A N/A q put N/A appid token aps test unittest dummy_token N/A alert sound Hello default True N/A N/A N/A worker main N/A N/A eq_ False N/A N/A worker send called N/A N/A eq_ False N/A N/A worker check_error called N/A