def test_process_queue_item_successful(self):
        with nested(
            mock.patch(__name__ % "%s.pushmanager.core.xmppclient.xmpp.Message"),
            mock.patch("%s.pushmanager.core.xmppclient.XMPPQueue.message_queue" % __name__)
        ):
            jabber_client = mock.MagicMock()
            pushmanager.core.xmppclient.XMPPQueue.message_queue.configure_mock(**self.fake_queue_attrs)

            pushmanager.core.xmppclient.XMPPQueue._process_queue_item(jabber_client)

            T.assert_equal(jabber_client.send.call_count, 1)
            T.assert_equal(pushmanager.core.xmppclient.XMPPQueue.message_queue.get.call_count, 1)
            T.assert_equal(pushmanager.core.xmppclient.XMPPQueue.message_queue.put.call_count, 0)
            T.assert_equal(pushmanager.core.xmppclient.XMPPQueue.message_queue.task_done.call_count, 1)
dataset/ETHPy150Open YelpArchive/pushmanager/pushmanager/tests/test_core_xmppclient.py/CoreXMPPClientTest.test_process_queue_item_successful/swapped operands of `%`