[Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests - testSecurity.py:1.10.6.3

Tres Seaver tseaver at zope.com
Thu Jan 15 18:20:16 EST 2004


Update of /cvs-repository/Zope/lib/python/AccessControl/tests
In directory cvs.zope.org:/tmp/cvs-serv26739/lib/python/AccessControl/tests

Modified Files:
      Tag: Zope-2_6-branch
	testSecurity.py 
Log Message:


  - More on Collector #1169:

    o *All* safe_builtins need to be wrapped in NotBindable.

    o *Don't* try to wedge safe_builtins['__import__'] into the
      namespace.


=== Zope/lib/python/AccessControl/tests/testSecurity.py 1.10.6.2 => 1.10.6.3 ===
--- Zope/lib/python/AccessControl/tests/testSecurity.py:1.10.6.2	Mon Jan 12 16:38:45 2004
+++ Zope/lib/python/AccessControl/tests/testSecurity.py	Thu Jan 15 18:20:15 2004
@@ -85,8 +85,9 @@
         NEW_BUILTINS_TEMPLATE = """
         <dtml-var expr="_.min([1,2])">
         <dtml-var expr="_.max([2,3])">
+        <dtml-var expr="_.hasattr(1, 'foo') and 'Yes' or 'No'">
         """
-        EXPECTED = ['1', '3']
+        EXPECTED = ['1', '3', 'No']
 
         template = self.doc_class(NEW_BUILTINS_TEMPLATE)
         res = template()




More information about the Zope-Checkins mailing list