view MoinMoin/groups/backends/_tests/test_config_group.py @ 4805:6a109416e2b2

Groups2009: cfg.config_groups was removed.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Thu, 11 Jun 2009 14:08:13 +0200
parents 3cea38408fe6
children 89497de6165d
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - MoinMoin.groups.backends.wiki_group tests

    @copyright: 2003-2004 by Juergen Hermann <jh@web.de>,
                2007 by MoinMoin:ThomasWaldmann
                2008 by MoinMoin:MelitaMihaljevic
                2009 by MoinMoin:DmitrijsMilajevs
    @license: GNU GPL, see COPYING for details.

"""

from  MoinMoin.groups.backends._tests import BackendTest
from MoinMoin.groups.backends import config_group
from MoinMoin.groups import GroupManager
from MoinMoin._tests import wikiconfig


class TestConfigBackend(BackendTest):

    class Config(wikiconfig.Config):

        def group_manager_init(self, request):
            groups = BackendTest.test_groups
            return GroupManager(config_group.Backend(request, groups))


coverage_modules = ['MoinMoin.groups.backends.config_group']