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

Tres Seaver tseaver at palladion.com
Thu Jul 7 10:57:03 EDT 2005


Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv16640/CMFCore/tests

Modified Files:
      Tag: CMF-1_4-branch
	test_FSMetadata.py 
Log Message:
 - Make role settings in .metadata files work (collector #359).


=== Products/CMFCore/tests/test_FSMetadata.py 1.3.4.4 => 1.3.4.5 ===
--- Products/CMFCore/tests/test_FSMetadata.py:1.3.4.4	Wed Nov 24 11:02:49 2004
+++ Products/CMFCore/tests/test_FSMetadata.py	Thu Jul  7 10:56:33 2005
@@ -38,6 +38,36 @@
         self._checkProxyRoles(
             self.ob.fake_skin.test6, 
             ['Manager', 'Anonymous'])
+
+    def test_basicPermissionsOnImage(self):
+        # Test basic FS permissions on Image
+        test_image = getattr(self.ob.fake_skin, 'test_image.gif')
+        assert(test_image.title == 'Test image')
+        self._checkSettings(
+            test_image,
+            'Access contents information',
+            1,
+            ['Manager','Anonymous'])
+        self._checkSettings(
+            test_image,
+            'View management screens',
+            0,
+            ['Manager'])
+
+    def test_basicPermissionsOnFile(self):
+        # Test basic FS permissions on File
+        test_file = getattr(self.ob.fake_skin, 'test_file.swf')
+        assert(test_file.title == 'Test file')
+        self._checkSettings(
+            test_file,
+            'Access contents information',
+            1,
+            ['Manager','Anonymous'])
+        self._checkSettings(
+            test_file,
+            'View management screens',
+            0,
+            ['Manager'])
     
     def test_proxy(self):
         # Test roles



More information about the CMF-checkins mailing list