Module ImportFrom alias ImportFrom alias Import alias Import alias Import alias identifier ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Str TupleLoad Str Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body With Call NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg body Raise Call NameLoad Str decorator_list With Call NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr attr BinOpSub NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameStore body Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore ListLoad Str Str Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str ListLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameStore body Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Str Assign NameStore ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore ListLoad Str Str Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str ListLoad Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameStore body Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Str Assign NameStore ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str BinOpMod Str NameLoad decorator_list decorator_list
N/A contextlib contextmanager contextlib nested N/A copy N/A mock N/A testify T pushmanager.core.settings Settings N/A pushmanager.core.xmppclient CoreXMPPClientTest N/A N/A T TestCase N/A setup_fakexmpp_attrs N/A N/A self N/A N/A N/A N/A self fake_client_attrs N/A auth.return_value connect.return_value disconnect.return_value isConnected.return_value Process.return_value reconnectAndReauth.return_value send.return_value sendInitPresence.return_value True True True True True True True True N/A N/A self fake_queue_attrs N/A get.return_value N/A testuser@example.com Fake Message N/A N/A T setup mock_settings N/A N/A self N/A N/A N/A N/A self MockedSettings N/A N/A copy deepcopy Settings N/A N/A T setup fake_xmpp_connect N/A N/A self N/A N/A N/A N/A nested N/A N/A mock patch N/A %s.pushmanager.core.xmppclient.logging __name__ N/A N/A mock patch N/A %s.pushmanager.core.xmppclient.Settings __name__ N/A N/A mock patch N/A %s.pushmanager.core.xmppclient.xmpp.Client __name__ N/A N/A mock patch N/A %s.pushmanager.core.xmppclient.xmpp.protocol.JID __name__ N/A N/A N/A N/A N/A N/A N/A N/A pushmanager core xmppclient xmpp Client configure_mock N/A self fake_client_attrs N/A jabber_client N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue _xmpp_connect_and_auth N/A N/A jabber_client N/A contextmanager test_xmpp_connect N/A N/A self N/A N/A N/A N/A N/A self fake_xmpp_connect jabber_client N/A N/A N/A N/A T assert_equal N/A N/A jabber_client connect call_count 1 N/A N/A N/A T assert_equal N/A N/A jabber_client auth call_count 1 N/A test_xmpp_reconnect N/A N/A self N/A N/A N/A N/A N/A self fake_xmpp_connect jabber_client N/A N/A N/A N/A jabber_client isConnected return_value False N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue _xmpp_check_and_reconnect jabber_client N/A N/A N/A T assert_equal N/A N/A jabber_client reconnectAndReauth call_count 1 N/A test_process_queue_item_successful N/A N/A self N/A N/A N/A N/A nested N/A N/A mock patch N/A %s.pushmanager.core.xmppclient.xmpp.Message __name__ N/A N/A mock patch N/A %s.pushmanager.core.xmppclient.XMPPQueue.message_queue __name__ N/A N/A jabber_client N/A N/A mock MagicMock N/A N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue message_queue configure_mock N/A self fake_queue_attrs N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue _process_queue_item jabber_client N/A N/A N/A T assert_equal N/A N/A jabber_client send call_count 1 N/A N/A N/A T assert_equal N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue message_queue get call_count 1 N/A N/A N/A T assert_equal N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue message_queue put call_count 0 N/A N/A N/A T assert_equal N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue message_queue task_done call_count 1 N/A test_process_queue_item_retry N/A N/A self N/A N/A raise_ioerror N/A N/A N/A args N/A N/A N/A IOError Fake IOError N/A N/A N/A nested N/A N/A mock patch N/A %s.pushmanager.core.xmppclient.logging __name__ N/A N/A mock patch N/A %s.pushmanager.core.xmppclient.xmpp.Message __name__ N/A N/A mock patch N/A %s.pushmanager.core.xmppclient.XMPPQueue.message_queue __name__ N/A N/A jabber_client N/A N/A mock MagicMock N/A N/A N/A jabber_client send side_effect raise_ioerror N/A N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue message_queue configure_mock N/A self fake_queue_attrs N/A retry_count N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue MAX_RETRY_COUNT N/A _ N/A range retry_count N/A N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue _process_queue_item jabber_client N/A N/A N/A T assert_equal N/A N/A jabber_client send call_count retry_count N/A N/A N/A T assert_equal N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue message_queue get call_count retry_count N/A N/A N/A T assert_equal N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue message_queue task_done call_count retry_count N/A N/A N/A T assert_equal N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue message_queue put call_count N/A retry_count 1 N/A test_enqueue_user_xmpp_with_string N/A N/A self N/A N/A N/A fake_domain fakedomain.com N/A fake_user fakeuser N/A N/A N/A N/A self MockedSettings N/A xmpp N/A default_domain fake_domain N/A N/A N/A N/A mock patch dict N/A N/A N/A pushmanager core xmppclient Settings N/A self MockedSettings N/A N/A N/A N/A N/A mock patch object N/A N/A N/A pushmanager core xmppclient XMPPQueue enqueue_xmpp mock_enqueue_xmpp N/A N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue enqueue_user_xmpp fake_user message N/A N/A N/A mock_enqueue_xmpp assert_called_with N/A %s@%s N/A fake_user fake_domain message N/A test_enqueue_user_xmpp_with_list N/A N/A self N/A N/A N/A fake_domain fakedomain.com N/A fake_users N/A fakeuser1 fakeuser2 N/A N/A N/A N/A self MockedSettings N/A xmpp N/A default_domain fake_domain N/A N/A N/A N/A self MockedSettings N/A xmpp N/A notifyonly N/A N/A N/A N/A N/A mock patch dict N/A N/A N/A pushmanager core xmppclient Settings N/A self MockedSettings N/A N/A N/A N/A N/A mock patch object N/A N/A N/A pushmanager core xmppclient XMPPQueue enqueue_xmpp mock_enqueue_xmpp N/A N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue enqueue_user_xmpp fake_users message N/A fake_ids N/A N/A %s@%s N/A fake_user fake_domain N/A fake_user fake_users N/A N/A N/A mock_enqueue_xmpp assert_called_with fake_ids message N/A test_enqueue_user_xmpp_with_notifyonly N/A N/A self N/A N/A N/A fake_domain fakedomain.com N/A fake_users N/A fakeuser1 fakeuser2 N/A N/A N/A N/A self MockedSettings N/A xmpp N/A default_domain fake_domain N/A N/A N/A N/A self MockedSettings N/A xmpp N/A notifyonly N/A notifyme N/A N/A N/A N/A mock patch dict N/A N/A N/A pushmanager core xmppclient Settings N/A self MockedSettings N/A N/A N/A N/A N/A mock patch object N/A N/A N/A pushmanager core xmppclient XMPPQueue enqueue_xmpp mock_enqueue_xmpp N/A N/A N/A N/A N/A N/A N/A pushmanager core xmppclient XMPPQueue enqueue_user_xmpp fake_users message N/A fake_ids N/A N/A %s@%s N/A fake_user fake_domain N/A fake_user fake_users N/A N/A N/A mock_enqueue_xmpp assert_called_with N/A N/A %s@%s N/A user fake_domain N/A user N/A N/A N/A self MockedSettings N/A xmpp N/A notifyonly N/A Original recipients: %s

message fake_ids N/A N/A