test: refactoring:
- rename internal init methods to reinit
- rename getSentMessage to getSentMessageXml
- rename getSentMessageRaw to getSentMessage
This commit is contained in:
parent
a6e6cd68be
commit
852106becd
1 changed files with 115 additions and 95 deletions
|
|
@ -37,7 +37,7 @@ class XEP_0085Test(helpers.SatTestCase):
|
|||
self.plugin = plugin.XEP_0085(self.host)
|
||||
|
||||
def test_messageReceived(self):
|
||||
self.host.memory.init()
|
||||
self.host.memory.reinit()
|
||||
self.host.memory.setParam(plugin.PARAM_NAME, True, plugin.PARAM_KEY, C.NO_SECURITY_LIMIT, Const.PROFILE[0])
|
||||
for state in plugin.CHAT_STATES:
|
||||
xml = u"""
|
||||
|
|
@ -54,7 +54,7 @@ class XEP_0085Test(helpers.SatTestCase):
|
|||
self.plugin.messageReceivedTrigger(stanza, defer.Deferred(), Const.PROFILE[0])
|
||||
|
||||
def test_sendMessageTrigger(self):
|
||||
self.host.memory.init()
|
||||
self.host.memory.reinit()
|
||||
self.host.memory.setParam(plugin.PARAM_NAME, True, plugin.PARAM_KEY, C.NO_SECURITY_LIMIT, Const.PROFILE[0])
|
||||
for state in plugin.CHAT_STATES:
|
||||
mess_data = {"to": Const.JID[0],
|
||||
|
|
|
|||
Loading…
Reference in a new issue