test: fixes test for XEP-0085 (use full JID)

This commit is contained in:
souliane 2014-10-20 20:46:10 +02:00
commit 939556f743

View file

@ -74,5 +74,5 @@ class XEP_0085Test(helpers.SatTestCase):
self.plugin.sendMessageTrigger(mess_data, defer.Deferred(), treatments, Const.PROFILE[0])
xml = treatments.callbacks[0][0][0](mess_data)
# cancel the timer to not block the process
self.plugin.map[Const.PROFILE[0]][Const.JID[0].userhostJID()].timer.cancel()
self.plugin.map[Const.PROFILE[0]][Const.JID[0]].timer.cancel()
self.assertEqualXML(xml['xml'].toXml().encode("utf-8"), expected.toXml().encode("utf-8"))