@contextmanager
    def fake_xmpp_connect(self):
        with nested(
            mock.patch(__name__ % "%s.pushmanager.core.xmppclient.logging"),
            mock.patch("%s.pushmanager.core.xmppclient.Settings" % __name__),
            mock.patch("%s.pushmanager.core.xmppclient.xmpp.Client" % __name__),
            mock.patch("%s.pushmanager.core.xmppclient.xmpp.protocol.JID" % __name__),
        ):
            pushmanager.core.xmppclient.xmpp.Client.configure_mock(**self.fake_client_attrs)
            jabber_client = pushmanager.core.xmppclient.XMPPQueue._xmpp_connect_and_auth()
            yield jabber_client
dataset/ETHPy150Open YelpArchive/pushmanager/pushmanager/tests/test_core_xmppclient.py/CoreXMPPClientTest.fake_xmpp_connect/swapped operands of `%`