[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/tests - test_contents.py:1.3.4.3

Steve Alexander steve@cat-box.net
Thu, 6 Feb 2003 12:31:08 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/container/tests
In directory cvs.zope.org:/tmp/cvs-serv4165/src/zope/app/browser/container/tests

Modified Files:
      Tag: paris-copypasterename-branch
	test_contents.py 
Log Message:
Put the sample container in context.


=== Zope3/src/zope/app/browser/container/tests/test_contents.py 1.3.4.2 => 1.3.4.3 ===
--- Zope3/src/zope/app/browser/container/tests/test_contents.py:1.3.4.2	Thu Feb  6 12:17:48 2003
+++ Zope3/src/zope/app/browser/container/tests/test_contents.py	Thu Feb  6 12:31:06 2003
@@ -158,7 +158,7 @@
                               'document2_2'] )
         self.failUnless('document1_1' not in container)
         self.failIf('document_1 in container')
-         
+
 class IDocument(Interface):
     pass
 
@@ -170,7 +170,11 @@
 
     def _TestView__newContext(self):
         from zope.app.container.sample import SampleContainer
-        return SampleContainer()
+        from zope.app.content.folder import RootFolder
+        from zope.proxy.context import ContextWrapper
+        root = RootFolder()
+        container = SampleContainer()
+        return ContextWrapper(container, root, name='sample')
 
     def _TestView__newView(self, container):
         from zope.app.browser.container.contents import Contents