comparison src/test/test_plugin_xep_0085.py @ 1254:87fbe4640448

test: fixes test for XEP-0085 (use full JID)
author souliane <souliane@mailoo.org>
date Mon, 20 Oct 2014 20:46:10 +0200
parents 861593a5652b
children 2308f8405ffb
comparison
equal deleted inserted replaced
1253:c13a46207410 1254:87fbe4640448
72 expected.addElement(state, plugin.NS_CHAT_STATES) 72 expected.addElement(state, plugin.NS_CHAT_STATES)
73 treatments = defer.Deferred() 73 treatments = defer.Deferred()
74 self.plugin.sendMessageTrigger(mess_data, defer.Deferred(), treatments, Const.PROFILE[0]) 74 self.plugin.sendMessageTrigger(mess_data, defer.Deferred(), treatments, Const.PROFILE[0])
75 xml = treatments.callbacks[0][0][0](mess_data) 75 xml = treatments.callbacks[0][0][0](mess_data)
76 # cancel the timer to not block the process 76 # cancel the timer to not block the process
77 self.plugin.map[Const.PROFILE[0]][Const.JID[0].userhostJID()].timer.cancel() 77 self.plugin.map[Const.PROFILE[0]][Const.JID[0]].timer.cancel()
78 self.assertEqualXML(xml['xml'].toXml().encode("utf-8"), expected.toXml().encode("utf-8")) 78 self.assertEqualXML(xml['xml'].toXml().encode("utf-8"), expected.toXml().encode("utf-8"))