[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/rotterdam/tests - test_xmlnavigationviews.py:1.6

Steve Alexander steve@cat-box.net
Thu, 2 Jan 2003 10:34:40 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/skins/rotterdam/tests
In directory cvs.zope.org:/tmp/cvs-serv1290/src/zope/app/browser/skins/rotterdam/tests

Modified Files:
	test_xmlnavigationviews.py 
Log Message:
remove extraneous variable assignment. use traverse() rather than using
a ContextWrapper.


=== Zope3/src/zope/app/browser/skins/rotterdam/tests/test_xmlnavigationviews.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/tests/test_xmlnavigationviews.py:1.5	Thu Jan  2 10:26:37 2003
+++ Zope3/src/zope/app/browser/skins/rotterdam/tests/test_xmlnavigationviews.py	Thu Jan  2 10:34:08 2003
@@ -51,10 +51,11 @@
         check_xml(treeView(), util.read_output('test4.xml'))
 
         from zope.app.content.file import File
-        from zope.proxy.context import ContextWrapper
+        from zope.app.traversing import traverse
         file1 = File()
-        self.folder1_1_1.setObject("file1", self.folder1_1_1)
-        self.file1 = ContextWrapper(file1, self.folder1_1_1, name = "file1")
+        self.folder1_1_1.setObject("file1", file1)
+        self.file1 = traverse(self.rootFolder,
+                              '/folder1/folder1_1/folder1_1_1/file1')
         from zope.component.view import provideView
         from zope.publisher.interfaces.browser import IBrowserPresentation
         from zope.publisher.interfaces.browser import IBrowserPublisher