test: make FakeClient profile dependent and add some tools to test MUC

This commit is contained in:
souliane 2014-01-10 18:15:02 +01:00
commit ddcfdd99ac

View file

@ -23,10 +23,14 @@ from twisted.words.protocols.jabber import jid
class Const(object):
PROFILE = ['test_profile', 'test_profile2', 'test_profile3', 'test_profile4']
JID_STR = [u"test@example.org/SàT", u"sender@example.net/house", u"sender@example.net/work", u"test@server.net/res"]
PROFILE = ['test_profile', 'test_profile2', 'test_profile3', 'test_profile4', 'test_profile5']
JID_STR = [u"test@example.org/SàT", u"sender@example.net/house", u"sender@example.net/work", u"sender@server.net/res", u"xxx@server.net/res"]
JID = [jid.JID(jid_s) for jid_s in JID_STR]
PROFILE_DICT = {}
for i in xrange(0, len(PROFILE)):
PROFILE_DICT[PROFILE[i]] = JID[i]
MUC_STR = [u"room@chat.server.domain", u"sat_game@chat.server.domain"]
MUC = [jid.JID(jid_s) for jid_s in MUC_STR]