Update of /cvsroot/mailman/mailman3/src/mailman/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18354
Modified Files:
test_members.py
Log Message:
Use the new ConfigTestBase class for testing -- however this module will go
away since it largely overlaps with test_user_ops.py
Index: test_members.py
===================================================================
RCS file: /cvsroot/mailman/mailman3/src/mailman/tests/test_members.py,v
retrieving revision 3.0
retrieving revision 3.1
diff -u -d -r3.0 -r3.1
--- test_members.py 1 May 2004 15:43:05 -0000 3.0
+++ test_members.py 1 May 2004 17:17:22 -0000 3.1
@@ -14,21 +14,19 @@
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA.
-"""Test backend member ops on any backend which implements IUserStorage.
-"""
+"""Test member creation and deletion."""
import os
import unittest
-from mailman import startup
-from mailman.config import configuration
from mailman.dbmgr import dbmgr
-from mailman.interfaces.profile import DeliveryMode
+from mailman.tests.basetest import ConfigTestBase
-class TestMembers(unittest.TestCase):
+class TestMembers(ConfigTestBase):
def setUp(self):
+ ConfigTestBase.setUp(self)
self._addr = '[EMAIL PROTECTED]'
self._domain = 'myTestDomain'
@@ -44,16 +42,3 @@
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestMembers))
return suite
-
-
-
-if __name__ == '__main__':
- here = os.path.abspath(os.path.dirname(__file__))
- mmroot = os.path.normpath(os.path.join(here, '../../..'))
- conffile = os.path.normpath(os.path.join(mmroot,
- 'etc/backendtest.conf'))
- configuration.configure(conffile)
- # after the above line, dbmgr should know about our backend.
- # now call everyone's initializer
- startup.startup()
- unittest.main()
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org