1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: test_init.py,v 1.8 2002-05-15 03:27:16 richard Exp $
18+ # $Id: test_init.py,v 1.9 2002-05-23 04:26:05 richard Exp $
1919
2020import unittest , os , shutil , errno , imp , sys
2121
22- from roundup . init import init
22+ from roundup import init
2323
2424class MyTestCase (unittest .TestCase ):
2525 count = 0
@@ -43,7 +43,8 @@ def testCreation(self):
4343 ae = self .assertEqual
4444
4545 # create the instance
46- init (self .dirname , 'classic' , self .backend , 'sekrit' )
46+ init .install (self .dirname , 'classic' , self .backend )
47+ init .initialise (self .dirname , 'sekrit' )
4748
4849 # check we can load the package
4950 instance = imp .load_package (self .dirname , self .dirname )
@@ -73,7 +74,8 @@ def testCreation(self):
7374 ae = self .assertEqual
7475
7576 # create the instance
76- init (self .dirname , 'extended' , self .backend , 'sekrit' )
77+ init .install (self .dirname , 'extended' , self .backend )
78+ init .initialise (self .dirname , 'sekrit' )
7779
7880 # check we can load the package
7981 instance = imp .load_package (self .dirname , self .dirname )
@@ -138,6 +140,15 @@ def suite():
138140
139141#
140142# $Log: not supported by cvs2svn $
143+ # Revision 1.8 2002/05/15 03:27:16 richard
144+ # . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope
145+ # (thanks dman)
146+ # . fixed some sorting issues that were breaking some unit tests under py2.2
147+ # . mailgw test output dir was confusing the init test (but only on 2.2 *shrug*)
148+ #
149+ # fixed bug in the init unit test that meant only the bsddb test ran if it
150+ # could (it clobbered the anydbm test)
151+ #
141152# Revision 1.7 2001/10/28 22:51:38 richard
142153# Fixed ENOENT/WindowsError thing, thanks Juergen Hermann
143154#
0 commit comments