[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests - AdderBaseTests.py:1.1.2.8

Jim Fulton jim@zope.com
Mon, 10 Jun 2002 15:34:48 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv5490/lib/python/Zope/App/OFS/Container/Views/Browser/tests

Modified Files:
      Tag: Zope-3x-branch
	AdderBaseTests.py 
Log Message:
Implemented 

http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/IContainerPythonification

Along the way:

- Converted most uses of has_key to use in.

- Fixed a bug in Interface names and namesAndDescriptions methods 
  that caused base class attributes to be missed.



=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests/AdderBaseTests.py 1.1.2.7 => 1.1.2.8 ===
         fa.action(type_name='Zope.App.OFS.Container', id='foo')
 
-        self.assertEquals(len(container.objectIds()), 1)
-        self.assertEquals(container.objectIds()[0], 'foo')
-        self.assertEquals(len(container.objectValues()), 1)
-        self.assertEquals(container.objectValues()[0].__class__,
+        self.assertEquals(len(container.keys()), 1)
+        self.assertEquals(container.keys()[0], 'foo')
+        self.assertEquals(len(container.values()), 1)
+        self.assertEquals(container.values()[0].__class__,
                            container.__class__)
 
     def testDuplicates(self):