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

Jim Fulton jim@zope.com
Mon, 4 Mar 2002 12:42:35 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	testContents.py 
Log Message:
Oops. The class (formerly known as Container) in
Zope.App.OFS.Container.SampleContainer isn't really useful for
production use directly, because it doesn;t follow the rules of
persistence. 

Added a BTreeContainer that is suitable.

Changes ServiceManager to use it.
 


=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests/testContents.py 1.1.2.1 => 1.1.2.2 ===
 
     def _TestView__newContext(self):
-        from Zope.App.OFS.Container.SampleContainer import Container
-        return Container()
+        from Zope.App.OFS.Container.SampleContainer import SampleContainer
+        return SampleContainer()
 
     def _TestView__newView(self, container):
         from Zope.App.OFS.Container.Views.Browser.Contents import Contents