backend: rename SatRosterProtocol to LiberviaRosterProtocol
This commit is contained in:
parent
adfb02505d
commit
b3659079f5
3 changed files with 7 additions and 7 deletions
|
|
@ -970,7 +970,7 @@ class SatXMPPClient(SatXMPPEntity, wokkel_client.XMPPClient):
|
|||
self.messageProt = SatMessageProtocol(self.host_app)
|
||||
self.messageProt.setHandlerParent(self)
|
||||
|
||||
self.roster = SatRosterProtocol(self.host_app)
|
||||
self.roster = LiberviaRosterProtocol(self.host_app)
|
||||
self.roster.setHandlerParent(self)
|
||||
|
||||
self.presence = SatPresenceProtocol(self.host_app)
|
||||
|
|
@ -1422,7 +1422,7 @@ class SatMessageProtocol(xmppim.MessageProtocol):
|
|||
failure_.trap(exceptions.CancelError)
|
||||
|
||||
|
||||
class SatRosterProtocol(xmppim.RosterClientProtocol):
|
||||
class LiberviaRosterProtocol(xmppim.RosterClientProtocol):
|
||||
|
||||
def __init__(self, host):
|
||||
xmppim.RosterClientProtocol.__init__(self)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ from libervia.backend.tools import config as tools_config
|
|||
from .constants import Const as C
|
||||
from wokkel.xmppim import RosterItem
|
||||
from wokkel.generic import parseXml
|
||||
from libervia.backend.core.xmpp import SatRosterProtocol
|
||||
from libervia.backend.core.xmpp import LiberviaRosterProtocol
|
||||
from libervia.backend.memory.memory import Params, Memory
|
||||
from twisted.trial.unittest import FailTest
|
||||
from twisted.trial import unittest
|
||||
|
|
@ -351,11 +351,11 @@ class FakeTriggerManager(object):
|
|||
return True
|
||||
|
||||
|
||||
class FakeRosterProtocol(SatRosterProtocol):
|
||||
class FakeRosterProtocol(LiberviaRosterProtocol):
|
||||
"""This class is used by FakeClient (one instance per profile)"""
|
||||
|
||||
def __init__(self, host, parent):
|
||||
SatRosterProtocol.__init__(self, host)
|
||||
LiberviaRosterProtocol.__init__(self, host)
|
||||
self.parent = parent
|
||||
self._jids = {}
|
||||
self.add_item(parent.jid.userhostJID())
|
||||
|
|
|
|||
|
|
@ -57,11 +57,11 @@ class SatMessageProtocolTest(unittest.TestCase):
|
|||
self.message.onMessage(stanza)
|
||||
|
||||
|
||||
class SatRosterProtocolTest(unittest.TestCase):
|
||||
class LiberviaRosterProtocolTest(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.host = helpers.FakeSAT()
|
||||
self.roster = xmpp.SatRosterProtocol(self.host)
|
||||
self.roster = xmpp.LiberviaRosterProtocol(self.host)
|
||||
self.roster.parent = helpers.FakeClient(self.host)
|
||||
|
||||
def test_register_item(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue