[Zope3-checkins] CVS: Zope3/src/zope/app/content/tests - test_folder.py:1.9

Stephan Richter srichter@cosmos.phy.tufts.edu
Mon, 28 Jul 2003 07:46:03 -0400


Update of /cvs-repository/Zope3/src/zope/app/content/tests
In directory cvs.zope.org:/tmp/cvs-serv22155/src/zope/app/content/tests

Modified Files:
	test_folder.py 
Log Message:
Made the IContainer tests much more general, since it assumed that the 
name it suggested for the object will be the name given, which is of 
course not the case all the time. The bug tracker for example always 
generates the id for you (except if you force it ;-).


=== Zope3/src/zope/app/content/tests/test_folder.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/content/tests/test_folder.py:1.8	Wed May 21 16:27:41 2003
+++ Zope3/src/zope/app/content/tests/test_folder.py	Mon Jul 28 07:45:28 2003
@@ -34,6 +34,12 @@
     def makeTestData(self):
         return DefaultTestData()
 
+    def getUnknownKey(self):
+        return '10'
+
+    def getBadKeyTypes(self):
+        return [None, ['foo'], 1, '\xf3abc']
+
     def test_cloneWithoutChildren(self):
         folder = self.makeTestObject()
         self.failUnless(ICloneWithoutChildren.isImplementedBy(folder))