comparison src/test/test_plugin_misc_groupblog.py @ 1910:55440ee00905

test: update some tests
author souliane <souliane@mailoo.org>
date Fri, 11 Mar 2016 17:42:56 +0100
parents d17772b0fe22
children 2daf7b4c6756
comparison
equal deleted inserted replaced
1909:0681d69cbe0a 1910:55440ee00905
134 134
135 class XEP_groupblogTest(helpers.SatTestCase): 135 class XEP_groupblogTest(helpers.SatTestCase):
136 136
137 def setUp(self): 137 def setUp(self):
138 self.host = helpers.FakeSAT() 138 self.host = helpers.FakeSAT()
139 self.host.plugins['XEP-0060'] = plugin_xep_0060.XEP_0060(self.host)
140 self.host.plugins['XEP-0163'] = plugin_xep_0163.XEP_0163(self.host)
141 reload(plugin_misc_text_syntaxes) # reload the plugin to avoid conflict error
142 self.host.plugins['TEXT-SYNTAXES'] = plugin_misc_text_syntaxes.TextSyntaxes(self.host)
143 self.host.plugins['XEP-0277'] = plugin_xep_0277.XEP_0277(self.host)
139 self.plugin = plugin_misc_groupblog.GroupBlog(self.host) 144 self.plugin = plugin_misc_groupblog.GroupBlog(self.host)
140 self.plugin._initialise = self._initialise 145 self.plugin._initialise = self._initialise
141 self.host.plugins['XEP-0060'] = plugin_xep_0060.XEP_0060(self.host)
142 self.host.plugins['XEP-0163'] = plugin_xep_0163.XEP_0163(self.host)
143 self.host.plugins['TEXT-SYNTAXES'] = plugin_misc_text_syntaxes.TextSyntaxes(self.host)
144 self.host.plugins['XEP-0277'] = plugin_xep_0277.XEP_0277(self.host)
145 self.__initialised = False 146 self.__initialised = False
146 self._initialise(C.PROFILE[0]) 147 self._initialise(C.PROFILE[0])
147 148
148 def _initialise(self, profile_key): 149 def _initialise(self, profile_key):
149 profile = profile_key 150 profile = profile_key