[Zope-CVS] CVS: Packages/pypes/pypes/tests - test_identity.py:1.18

Casey Duncan casey at zope.com
Thu Jun 10 00:36:41 EDT 2004


Update of /cvs-repository/Packages/pypes/pypes/tests
In directory cvs.zope.org:/tmp/cvs-serv5633/tests

Modified Files:
	test_identity.py 
Log Message:
Make sure empty identity set can be iterated without being attached to services


=== Packages/pypes/pypes/tests/test_identity.py 1.17 => 1.18 ===
--- Packages/pypes/pypes/tests/test_identity.py:1.17	Mon Jun  7 00:14:49 2004
+++ Packages/pypes/pypes/tests/test_identity.py	Thu Jun 10 00:36:40 2004
@@ -467,6 +467,12 @@
             del objs[o]
         self.failIf(objs)
     
+    def testIterEmpty(self):
+        from pypes.identity import IdentitySet
+        empty = IdentitySet()
+        self.failIf(empty)
+        self.assertEqual(list(empty), [])
+    
     def testIterUnregisteredYieldsNone(self):
         from pypes.services import identity
         o = self._newObj()




More information about the Zope-CVS mailing list