comparison 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
comparison
equal deleted inserted replaced
791:23b0c949b86c 792:2136be5a44a8
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from sat.core.i18n import _, D_ 20 from sat.core.i18n import _, D_
21 from twisted.words.protocols.jabber.jid 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 TEST_JID_STR = u"test@example.org/SàT" 26 PROFILE = ['test_profile', 'test_profile2', 'test_profile3', 'test_profile4']
27 TEST_JID = JID(TEST_JID_STR) 27 JID_STR = [u"test@example.org/SàT", u"sender@example.net/house", u"sender@example.net/work", u"test@server.net/res"]
28 JID = [jid.JID(jid_s) for jid_s in JID_STR]
28 29
29 TEST_JID_2_STR = u"sender@example.net/house" 30 MUC_STR = [u"room@chat.server.domain", u"sat_game@chat.server.domain"]
30 TEST_JID_2 = JID(TEST_JID_2_STR) 31 MUC = [jid.JID(jid_s) for jid_s in MUC_STR]
31
32 TEST_JID_3_STR = u"sender@example.net/work"
33 TEST_JID_3 = JID(TEST_JID_3_STR)
34
35 TEST_PROFILE = 'test_profile'
36 32
37 NO_SECURITY_LIMIT = -1 33 NO_SECURITY_LIMIT = -1
38 SECURITY_LIMIT = 0 34 SECURITY_LIMIT = 0
39 35
40 # To test frontend parameters 36 # To test frontend parameters