[Checkins] SVN: Products.CMFCore/trunk/Products/CMFCore/tests/test_FS Change permission tests to use `View management screens` instead of `Access contents information` for FSObject tests, as the former is actually used in the classes.
Hanno Schlichting
hannosch at hannosch.eu
Thu Aug 11 16:03:56 EDT 2011
Log message for revision 122554:
Change permission tests to use `View management screens` instead of `Access contents information` for FSObject tests, as the former is actually used in the classes.
Changed:
U Products.CMFCore/trunk/Products/CMFCore/tests/test_FSMetadata.py
U Products.CMFCore/trunk/Products/CMFCore/tests/test_FSSecurity.py
-=-
Modified: Products.CMFCore/trunk/Products/CMFCore/tests/test_FSMetadata.py
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/tests/test_FSMetadata.py 2011-08-11 20:03:14 UTC (rev 122553)
+++ Products.CMFCore/trunk/Products/CMFCore/tests/test_FSMetadata.py 2011-08-11 20:03:55 UTC (rev 122554)
@@ -38,11 +38,6 @@
assert(self.ob.fake_skin.test6.title == 'Test object')
self._checkSettings(
self.ob.fake_skin.test6,
- 'Access contents information',
- 1,
- ['Manager','Anonymous'])
- self._checkSettings(
- self.ob.fake_skin.test6,
'View management screens',
0,
['Manager'])
@@ -56,11 +51,6 @@
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'])
@@ -71,11 +61,6 @@
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'])
Modified: Products.CMFCore/trunk/Products/CMFCore/tests/test_FSSecurity.py
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/tests/test_FSSecurity.py 2011-08-11 20:03:14 UTC (rev 122553)
+++ Products.CMFCore/trunk/Products/CMFCore/tests/test_FSSecurity.py 2011-08-11 20:03:55 UTC (rev 122554)
@@ -70,7 +70,7 @@
self._checkSettings(self.ob.fake_skin.test4,
'View', 1, ['Manager', 'Owner'])
self._checkSettings(self.ob.fake_skin.test4,
- 'Access contents information', 0, [])
+ 'View management screens', 1, [])
def test_invalidPermissionNames(self):
# Test for an invalid permission name
More information about the checkins
mailing list