Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/src/test/constants.py Fri Jan 10 18:19:34 2014 +0100 +++ b/src/test/constants.py Fri Jan 10 18:15:02 2014 +0100 @@ -23,10 +23,14 @@ 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]