test: update some tests
This commit is contained in:
parent
8bc634d4c2
commit
27f74af7b0
1 changed files with 48 additions and 44 deletions
|
|
@ -190,12 +190,12 @@ class FakeSAT(object):
|
|||
entry = self.getSentMessage(profile_index)
|
||||
return entry.toXml() if entry else None
|
||||
|
||||
def findFeaturesSet(self, features, category=None, type_=None, jid_=None, profile_key=None):
|
||||
def findFeaturesSet(self, features, identity=None, jid_=None, profile=C.PROF_KEY_NONE):
|
||||
"""Call self.addFeature from your tests to change the return value.
|
||||
|
||||
@return: a set of entities
|
||||
"""
|
||||
client = self.getClient(profile_key)
|
||||
client = self.getClient(profile)
|
||||
if jid_ is None:
|
||||
jid_ = JID(client.jid.host)
|
||||
try:
|
||||
|
|
@ -301,7 +301,7 @@ class FakeMemory(Memory):
|
|||
# manipulating basic stuff, the others should be overwritten when needed
|
||||
self.host = host
|
||||
self.params = FakeParams(host, None)
|
||||
self.config = self.parseMainConf()
|
||||
self.config = tools_config.parseMainConf()
|
||||
self.reinit()
|
||||
|
||||
def reinit(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue