[CMF-checkins] CVS: CMF - test_join.py:1.1 test_all.py:1.5
tseaver@digicool.com
tseaver@digicool.com
Wed, 13 Jun 2001 16:25:07 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault/tests
In directory korak.digicool.com:/tmp/cvs-serv28187/CMFDefault/tests
Modified Files:
test_all.py
Added Files:
test_join.py
Log Message:
- Add test for join bug (Tracker #319)
--- Added File test_join.py in package CMF ---
import Zope
import unittest
class MembershipTests( unittest.TestCase ):
def setUp( self ):
get_transaction().begin()
self.root = Zope.app()
def tearDown( self ):
del self.root
get_transaction().abort()
def test_join( self ):
self.root.manage_addProduct[ 'CMFDefault' ].manage_addCMFSite( 'site' )
site = self.root.site
site.portal_registration.addMember( 'test_user'
, 'zzyyzz'
, properties={ 'username':'test_user'
, 'email' : 'foo@bar.com'
}
)
assert site.acl_users.getUser( 'test_user' )
def test_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite( MembershipTests ) )
return suite
def run():
unittest.TextTestRunner().run(test_suite())
if __name__ == '__main__':
run()
--- Updated File test_all.py in package CMF --
--- test_all.py 2001/06/02 04:19:52 1.4
+++ test_all.py 2001/06/13 20:25:06 1.5
@@ -5,6 +5,7 @@
from Products.CMFDefault.tests import test_Image
from Products.CMFDefault.tests import test_MetadataTool
from Products.CMFDefault.tests import test_utils
+from Products.CMFDefault.tests import test_join
def test_suite():
suite = unittest.TestSuite()
@@ -14,6 +15,7 @@
suite.addTest( test_Image.test_suite() )
suite.addTest( test_MetadataTool.test_suite() )
suite.addTest( test_utils.test_suite() )
+ suite.addTest( test_join.test_suite() )
return suite
def run():