[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/tests - testDefaultTraverser.py:1.1.2.3.2.1 testZopePublication.py:1.1.2.13.2.1

Stephan Richter srichter@cbu.edu
Wed, 13 Mar 2002 05:58:04 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/tests
In directory cvs.zope.org:/tmp/cvs-serv11175/lib/python/Zope/App/ZopePublication/tests

Modified Files:
      Tag: srichter-OFS_Formulator-branch
	testDefaultTraverser.py testZopePublication.py 
Log Message:
- Added some more tests. Won;t do more, since Publisher is being redesigned
  later this week. I will wait until then.

- Added preliminary SOAP support, so we can test Mozilla's SOAP 
  capabilities. Unfortunately, soaplib is very old; I will look into using 
  SOAPpy instead. It seems fairly complete.


=== Zope3/lib/python/Zope/App/ZopePublication/tests/testDefaultTraverser.py 1.1.2.3 => 1.1.2.3.2.1 ===
 from Zope.Testing.CleanUp import CleanUp # Base class w registry cleanup
 from Zope.ComponentArchitecture import provideView
-from Zope.App.ZopePublication.Traversers import DefaultTraverser
+from Zope.App.ZopePublication.Browser.BrowserTraversers import \
+     DefaultTraverser
 from Interface import Interface
 from Zope.Exceptions import NotFoundError
 


=== Zope3/lib/python/Zope/App/ZopePublication/tests/testZopePublication.py 1.1.2.13 => 1.1.2.13.2.1 ===
+##############################################################################
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
 # 
 # This software is subject to the provisions of the Zope Public License,
 # Version 1.1 (ZPL).  A copy of the ZPL should accompany this distribution.
@@ -6,6 +9,11 @@
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS 
 # FOR A PARTICULAR PURPOSE.
+##############################################################################
+"""
+
+$Id$
+"""
 
 import unittest
 
@@ -13,7 +21,8 @@
 from Zope.Publisher.BaseRequest import BaseRequest
 from Zope.Publisher.BaseResponse import BaseResponse
 from Zope.App.ZopePublication.ZopePublication import ZopePublication
-from Zope.App.ZopePublication.ZopePublication import BrowserPublication
+from Zope.App.ZopePublication.Browser.BrowserPublication import \
+     BrowserPublication
 from Zope.Configuration.name import resolve
 from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
 from Zope.Publisher.DefaultPublication import DefaultPublication
@@ -24,7 +33,8 @@
 from Zope.Publisher.Exceptions import Retry
 from Zope.App.Security.SecurityManager import setSecurityPolicy
 from Zope.App.Security import SimpleSecurityPolicies
-from Zope.App.ZopePublication.Traversers import DefaultTraverser
+from Zope.App.ZopePublication.Browser.BrowserTraversers import \
+     DefaultTraverser
 from Interface import verify, instancesOfObjectImplements, Interface
 
 from Zope.Testing.CleanUp import CleanUp # Base class w registry cleanup