diff src/test/constants.py @ 792:2136be5a44a8

test: define the constants JIDs and profiles as lists
author souliane <souliane@mailoo.org>
date Thu, 09 Jan 2014 11:18:33 +0100
parents c3acc1298a2f
children 52c4b755aba6
line wrap: on
line diff
--- a/src/test/constants.py	Fri Jan 10 18:07:36 2014 +0100
+++ b/src/test/constants.py	Thu Jan 09 11:18:33 2014 +0100
@@ -18,21 +18,17 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from sat.core.i18n import _, D_
-from twisted.words.protocols.jabber.jid import JID
+from twisted.words.protocols.jabber import jid
 
 
 class Const(object):
 
-    TEST_JID_STR = u"test@example.org/SàT"
-    TEST_JID = JID(TEST_JID_STR)
+    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"]
+    JID = [jid.JID(jid_s) for jid_s in JID_STR]
 
-    TEST_JID_2_STR = u"sender@example.net/house"
-    TEST_JID_2 = JID(TEST_JID_2_STR)
-
-    TEST_JID_3_STR = u"sender@example.net/work"
-    TEST_JID_3 = JID(TEST_JID_3_STR)
-
-    TEST_PROFILE = 'test_profile'
+    MUC_STR = [u"room@chat.server.domain", u"sat_game@chat.server.domain"]
+    MUC = [jid.JID(jid_s) for jid_s in MUC_STR]
 
     NO_SECURITY_LIMIT = -1
     SECURITY_LIMIT = 0