view MoinMoin/groups/backends/_tests/ @ 4812:a1018d829c3e

Groups2009: It is possible to import backends as 'from Moin.groups import WikiGroups, ConfigGroups, CompositeGroups'. Compose backend was renamed to Composite.
author Dmitrijs Milajevs <>
date Sun, 14 Jun 2009 17:23:58 +0200
parents MoinMoin/groups/backends/_tests/
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
    MoinMoin - MoinMoin.groups.backends.wiki_group tests

    @copyright: 2003-2004 by Juergen Hermann <>,
                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 import ConfigGroups
from MoinMoin._tests import wikiconfig

class TestConfigBackend(BackendTest):

    class Config(wikiconfig.Config):

        def group_manager_init(self, request):
            groups = BackendTest.test_groups
            return ConfigGroups(request, groups)

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