Mercurial > libervia-backend
comparison src/test/constants.py @ 794:52c4b755aba6
test: make FakeClient profile dependent and add some tools to test MUC
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 10 Jan 2014 18:15:02 +0100 |
parents | 2136be5a44a8 |
children | 1fe00f0c9a91 |
comparison
equal
deleted
inserted
replaced
793:cb2db0d85029 | 794:52c4b755aba6 |
---|---|
21 from twisted.words.protocols.jabber import jid | 21 from twisted.words.protocols.jabber import jid |
22 | 22 |
23 | 23 |
24 class Const(object): | 24 class Const(object): |
25 | 25 |
26 PROFILE = ['test_profile', 'test_profile2', 'test_profile3', 'test_profile4'] | 26 PROFILE = ['test_profile', 'test_profile2', 'test_profile3', 'test_profile4', 'test_profile5'] |
27 JID_STR = [u"test@example.org/SàT", u"sender@example.net/house", u"sender@example.net/work", u"test@server.net/res"] | 27 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"] |
28 JID = [jid.JID(jid_s) for jid_s in JID_STR] | 28 JID = [jid.JID(jid_s) for jid_s in JID_STR] |
29 | |
30 PROFILE_DICT = {} | |
31 for i in xrange(0, len(PROFILE)): | |
32 PROFILE_DICT[PROFILE[i]] = JID[i] | |
29 | 33 |
30 MUC_STR = [u"room@chat.server.domain", u"sat_game@chat.server.domain"] | 34 MUC_STR = [u"room@chat.server.domain", u"sat_game@chat.server.domain"] |
31 MUC = [jid.JID(jid_s) for jid_s in MUC_STR] | 35 MUC = [jid.JID(jid_s) for jid_s in MUC_STR] |
32 | 36 |
33 NO_SECURITY_LIMIT = -1 | 37 NO_SECURITY_LIMIT = -1 |