view MoinMoin/config/_tests/test_configs.py @ 3393:93aa3b53ddc9

add configuration tests currently only one checking that data_underlay_dir = None won't screw up right away
author Johannes Berg <johannes AT sipsolutions DOT net>
date Fri, 21 Mar 2008 17:09:51 +0100
parents
children e5a9570d3001
line wrap: on
line source
from MoinMoin.config.multiconfig import DefaultConfig

class NoUnderlay(DefaultConfig):
    data_underlay_dir = None

_tests = [NoUnderlay, ]

class TestConfigs:
    def testConfigs(self):
        for cls in _tests:
            cls.data_dir = self.request.cfg.data_dir
            # quite a bad hack to make _importPlugin succeed
            cls('MoinMoin')