test: fix the tests
This commit is contained in:
parent
d9a7804fb5
commit
f34a5b8aaf
1 changed files with 206 additions and 211 deletions
|
|
@ -339,6 +339,7 @@ class FakeRosterProtocol(SatRosterProtocol):
|
|||
def __init__(self, host, parent):
|
||||
SatRosterProtocol.__init__(self, host)
|
||||
self.parent = parent
|
||||
self._jids = {}
|
||||
self.addItem(parent.jid)
|
||||
|
||||
def addItem(self, jid, *args, **kwargs):
|
||||
|
|
@ -351,7 +352,8 @@ class FakeRosterProtocol(SatRosterProtocol):
|
|||
if roster_item.name:
|
||||
attrs['name'] = roster_item.name
|
||||
self.host.bridge.expectCall("newContact", jid.full(), attrs, roster_item.groups, self.parent.profile)
|
||||
self.onRosterSet(roster_item)
|
||||
self._jids[jid] = roster_item
|
||||
self._registerItem(roster_item)
|
||||
|
||||
|
||||
class FakeXmlStream(object):
|
||||
|
|
|
|||
Loading…
Reference in a new issue