diff src/test/test_plugin_xep_0085.py @ 1271:2308f8405ffb

test: refactoring: - rename internal init methods to reinit - rename getSentMessage to getSentMessageXml - rename getSentMessageRaw to getSentMessage
author souliane <souliane@mailoo.org>
date Fri, 19 Dec 2014 11:36:00 +0100
parents 87fbe4640448
children 347aee3a3f5c
line wrap: on
line diff
--- a/src/test/test_plugin_xep_0085.py	Mon Dec 15 15:29:08 2014 +0100
+++ b/src/test/test_plugin_xep_0085.py	Fri Dec 19 11:36:00 2014 +0100
@@ -37,7 +37,7 @@
         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 @@
             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],