[CMF-checkins] CVS: CMF/CMFCore/tests - test_FSMetadata.py:1.1

Andy McKay andy@agmweb.ca
Wed, 12 Mar 2003 00:06:41 -0500


Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv19816/tests

Added Files:
	test_FSMetadata.py 
Log Message:
Add new .metadata file which combines previous formats into a ConfigParser type format. Proxy role stuff to come


=== Added File CMF/CMFCore/tests/test_FSMetadata.py ===
import Zope

from unittest import TestSuite, makeSuite, main
from types import ListType
from os import remove
from os.path import join
from time import sleep

from Products.CMFCore.tests.base.testcase import RequestTest
from Products.CMFCore.tests.base.testcase import FSDVTest

from Globals import DevelopmentMode

from test_FSSecurity import FSSecurityBase
        
class FSMetadata(FSSecurityBase):

    def test_basicPermissions( self ):
        """ Test basic FS permissions """
        # check it has a title
        assert(self.ob.fake_skin.test6.title == 'Test object')
        self._checkSettings(
            self.ob.fake_skin.test6,
            'Access contents information',
            1,
            ['Manager','Anonymous'])

def test_suite():
    return TestSuite((
        makeSuite(FSMetadata),
        ))

if __name__ == '__main__':
    main(defaultTest='test_suite')