def test_enqueue_user_xmpp_with_list(self):
        fake_domain = "fakedomain.com"
        fake_users = ["fakeuser1", "fakeuser2"]
        self.MockedSettings['xmpp']['default_domain'] = fake_domain
        self.MockedSettings['xmpp']['notifyonly'] = []
        with mock.patch.dict(pushmanager.core.xmppclient.Settings, self.MockedSettings):
            with mock.patch.object(pushmanager.core.xmppclient.XMPPQueue, "enqueue_xmpp") as mock_enqueue_xmpp:
                pushmanager.core.xmppclient.XMPPQueue.enqueue_user_xmpp(fake_users, 'message')
                fake_ids = ["%s@%s" % (fake_user, fake_domain) for fake_user in fake_users]
                mock_enqueue_xmpp.assert_called_with(fake_ids, 'message')
dataset/ETHPy150Open YelpArchive/pushmanager/pushmanager/tests/test_core_xmppclient.py/CoreXMPPClientTest.test_enqueue_user_xmpp_with_list/original