comparison src/test/constants.py @ 780:9810f22ba733

test: store the constants in constants.py + better PEP8 compliance
author souliane <souliane@mailoo.org>
date Sat, 04 Jan 2014 15:45:08 +0100
parents
children 0e5807193721
comparison
equal deleted inserted replaced
779:a978c703bf57 780:9810f22ba733
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Primitivus: a SAT frontend
5 # Copyright (C) 2009, 2010, 2011, 2012, 2013 Jérôme Poisson (goffi@goffi.org)
6
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Affero General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU Affero General Public License for more details.
16
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/>.
19
20 from sat.core.i18n import _, D_
21 from twisted.words.protocols.jabber.jid import JID
22
23
24 class Const(object):
25
26 TEST_JID_STR = u"test@example.org/SàT"
27 TEST_JID = JID(TEST_JID_STR)
28
29 TEST_JID_2_STR = u"sender@example.net/house"
30 TEST_JID_2 = JID(TEST_JID_2_STR)
31
32 TEST_PROFILE = 'test_profile'
33
34 # To test frontend parameters
35 APP_NAME = "dummy_frontend"
36 SECURITY_LIMIT = 0
37 ENABLE_UNIBOX_KEY = D_("Composition")
38 ENABLE_UNIBOX_PARAM = D_("Enable unibox")