[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/rotterdam/tests - test_xmlnavigationviews.py:1.5
Godefroid Chapelle
gotcha@swing.be
Thu, 2 Jan 2003 10:27:09 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/skins/rotterdam/tests
In directory cvs.zope.org:/tmp/cvs-serv32734
Modified Files:
test_xmlnavigationviews.py
Log Message:
correcting tests
=== Zope3/src/zope/app/browser/skins/rotterdam/tests/test_xmlnavigationviews.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/tests/test_xmlnavigationviews.py:1.4 Thu Jan 2 10:03:21 2003
+++ Zope3/src/zope/app/browser/skins/rotterdam/tests/test_xmlnavigationviews.py Thu Jan 2 10:26:37 2003
@@ -50,13 +50,10 @@
treeView = rcxov(self.rootFolder, TestRequest()).children
check_xml(treeView(), util.read_output('test4.xml'))
- treeView = rcxov(self.folder1_1_1, TestRequest()).singleBranchTree
- check_xml(treeView(), util.read_output('test5.xml'))
-
from zope.app.content.file import File
from zope.proxy.context import ContextWrapper
file1 = File()
- self.rootFolder.setObject("file1", self.folder1_1_1)
+ self.folder1_1_1.setObject("file1", self.folder1_1_1)
self.file1 = ContextWrapper(file1, self.folder1_1_1, name = "file1")
from zope.component.view import provideView
from zope.publisher.interfaces.browser import IBrowserPresentation
@@ -72,8 +69,12 @@
return self.singleBranchTree()
provideView(IReadContainer, 'singleBranchTree.xml',
IBrowserPresentation, ReadContainerView)
+
+ treeView = rcxov(self.folder1_1_1, TestRequest()).singleBranchTree
+ check_xml(treeView(), util.read_output('test5.xml'))
+
treeView = XmlObjectView(self.file1, TestRequest()).singleBranchTree
- #check_xml(treeView(), util.read_output('test5.xml'))
+ check_xml(treeView(), util.read_output('test5.xml'))
def test_suite():