view src/test/constants.py @ 786:c3acc1298a2f

test: FakeMemory inherits from Memory + more helpers basic support + cleaning
author souliane <souliane@mailoo.org>
date Sun, 05 Jan 2014 13:04:54 +0100
parents 0e5807193721
children 2136be5a44a8
line wrap: on
line source

#!/usr/bin/python
# -*- coding: utf-8 -*-

# Primitivus: a SAT frontend
# Copyright (C) 2009, 2010, 2011, 2012, 2013  Jérôme Poisson (goffi@goffi.org)

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.

# You should have received a copy of the GNU Affero General Public License
# 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


class Const(object):

    TEST_JID_STR = u"test@example.org/SàT"
    TEST_JID = JID(TEST_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'

    NO_SECURITY_LIMIT = -1
    SECURITY_LIMIT = 0

    # To test frontend parameters
    APP_NAME = "dummy_frontend"
    ENABLE_UNIBOX_KEY = D_("Composition")
    ENABLE_UNIBOX_PARAM = D_("Enable unibox")