[Zope3-checkins] CVS: Zope3/src/zope/security/tests - test_standard_checkers.py:1.3
Jeremy Hylton
jeremy@zope.com
Sun, 22 Jun 2003 16:50:24 -0400
Update of /cvs-repository/Zope3/src/zope/security/tests
In directory cvs.zope.org:/tmp/cvs-serv22684/src/zope/security/tests
Modified Files:
test_standard_checkers.py
Log Message:
Add tests for various iterators.
=== Zope3/src/zope/security/tests/test_standard_checkers.py 1.2 => 1.3 ===
--- Zope3/src/zope/security/tests/test_standard_checkers.py:1.2 Tue May 27 17:14:11 2003
+++ Zope3/src/zope/security/tests/test_standard_checkers.py Sun Jun 22 16:50:24 2003
@@ -205,6 +205,24 @@
"""
+def test_iter():
+ """
+ >>> list(ProxyFactory(iter([1, 2])))
+ [1, 2]
+ >>> list(ProxyFactory(iter((1, 2))))
+ [1, 2]
+ >>> list(ProxyFactory(iter({1:1, 2:2})))
+ [1, 2]
+ >>> def f():
+ ... for i in 1, 2:
+ ... yield i
+ ...
+ >>> list(ProxyFactory(f()))
+ [1, 2]
+ >>> list(ProxyFactory(f)())
+ [1, 2]
+ """
+
def test_new_class():
"""