[CMF-checkins] CVS: Products/CMFDefault/tests -
test_DublinCore.py:1.2.26.2
Florent Guillaume
fg at nuxeo.com
Fri Mar 25 11:19:25 EST 2005
Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv11412/CMFDefault/tests
Modified Files:
Tag: CMF-1_4-branch
test_DublinCore.py
Log Message:
Fixed Creator() to not call a potentially costly method on the user
folder. (http://zope.org/Collectors/CMF/300)
=== Products/CMFDefault/tests/test_DublinCore.py 1.2.26.1 => 1.2.26.2 ===
--- Products/CMFDefault/tests/test_DublinCore.py:1.2.26.1 Sun Aug 1 16:51:11 2004
+++ Products/CMFDefault/tests/test_DublinCore.py Fri Mar 25 11:19:25 2005
@@ -58,6 +58,13 @@
self.assertEqual( content.Publisher(), PUBLISHER )
+ def test_Creator(self):
+ from AccessControl import getSecurityManager
+ user_id = getSecurityManager().getUser().getUserName()
+ site = self._makeSite()
+ content = self._makeDummyContent().__of__(site)
+ self.assertEqual(content.Creator(), user_id)
+
class DummyMetadataTool( Implicit ):
def __init__( self, publisher ):
More information about the CMF-checkins
mailing list