test: define the constants JIDs and profiles as lists

This commit is contained in:
souliane 2014-01-09 11:18:33 +01:00
commit db832c1f6b

View file

@ -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