[CMF-checkins] CVS: CMF/CMFCore/tests - test_Expression.py:1.4.2.1

Yvo Schubbe schubbe at web.de
Thu Dec 18 09:07:39 EST 2003


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

Modified Files:
      Tag: yuppie-collector025-branch
	test_Expression.py 
Log Message:
- added portal_membership to test context of content types
- some related cleanup


=== CMF/CMFCore/tests/test_Expression.py 1.4 => 1.4.2.1 ===
--- CMF/CMFCore/tests/test_Expression.py:1.4	Thu Nov 27 10:06:50 2003
+++ CMF/CMFCore/tests/test_Expression.py	Thu Dec 18 09:07:03 2003
@@ -1,5 +1,6 @@
 from unittest import TestSuite, makeSuite, main
 
+import Testing
 import Zope
 try:
     Zope.startup()
@@ -40,12 +41,11 @@
         member = ec.global_vars['member']
         self.failIf(member)
 
-
     def test_authenticatedUser_ec(self):
         self.portal.portal_membership = DummyMembershipTool(anon=0)
         ec = createExprContext(self.folder, self.portal, self.object)
         member = ec.global_vars['member']
-        self.assertEqual(member, 'member')
+        self.assertEqual(member.getId(), 'dummy')
 
     def test_ec_context(self):
         self.portal.portal_membership = DummyMembershipTool()




More information about the CMF-checkins mailing list