[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/rotterdam/tests - test_xmlnavigationviews.py:1.2
Godefroid Chapelle
gotcha@swing.be
Thu, 2 Jan 2003 07:05:09 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/skins/rotterdam/tests
In directory cvs.zope.org:/tmp/cvs-serv4665
Modified Files:
test_xmlnavigationviews.py
Log Message:
adding tests
=== Zope3/src/zope/app/browser/skins/rotterdam/tests/test_xmlnavigationviews.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/tests/test_xmlnavigationviews.py:1.1 Thu Jan 2 06:06:10 2003
+++ Zope3/src/zope/app/browser/skins/rotterdam/tests/test_xmlnavigationviews.py Thu Jan 2 07:04:36 2003
@@ -26,6 +26,7 @@
from zope.pagetemplate.tests.util import check_xml
from zope.app.browser.skins.rotterdam.tests import util
from zope.app.browser.skins.rotterdam.xmlobject import ReadContainerXmlObjectView
+from zope.app.browser.skins.rotterdam.xmlobject import XmlObjectView
from zope.publisher.browser import TestRequest
class TestXmlObject(EventSetup, TestCase):
@@ -45,6 +46,22 @@
treeView = ReadContainerXmlObjectView(self.rootFolder, TestRequest()).children
check_xml(treeView(), util.read_output('test4.xml'))
+
+ treeView = ReadContainerXmlObjectView(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
+ self.file1 = File()
+ self.rootFolder.setObject("file1", self.folder1_1_1)
+ self.file1 = ContextWrapper(self.file1, self.folder1_1_1,
+ name = "file1")
+
+# treeView = XmlObjectView(self.file1, TestRequest()).singleBranchTree
+# check_xml(treeView(), util.read_output('test5.xml'))
+
+
+
def test_suite():
loader = TestLoader()