test: make FakeClient profile dependent and add some tools to test MUC
This commit is contained in:
parent
cd45ede2d2
commit
ddcfdd99ac
1 changed files with 335 additions and 9 deletions
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue