Update of /cvsroot/mailman/mailman3/src/mailman/config/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23660

Modified Files:
      Tag: 3.0
        test_config.py 
Log Message:
Moving configuration tests from stubbackend/tests to here.


--- NEW FILE: test_config.py ---
# Copyright (C) 2004 Barry A. Warsaw
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 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 General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA.

"""Test the basic configuration stuff."""

import unittest

from protocols.api import adapt

from mailman.dbmgr import dbmgr
from mailman.interfaces.storages import IListStorage
from mailman.tests.basetest import ConfigTestBase



class TestConfig(ConfigTestBase):
    def test_config(self):
        lists = adapt(dbmgr.lists, IListStorage)
        # If adapt doesn't complain, we have a thing that works as IListStorage
        self.failUnless(lists)



def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestConfig))
    return suite


_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to