[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/tests - BaseTestIPublicationRequest.py:1.1.4.3

Jim Fulton jim@zope.com
Fri, 7 Jun 2002 10:41:59 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv12187/lib/python/Zope/Publisher/tests

Modified Files:
      Tag: Zope-3x-branch
	BaseTestIPublicationRequest.py 
Log Message:
Merging in Zope3InWonderland-branch, which implemented the following
proposals (see
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/OldProposals): 
- RenameAllowToRequire

- GroupClassRelatedDirectivesInClassDirective

- ViewInterfaceAndSimplification

- ConsistentUseOfSpacesAsDelimitersInZCMLAttributes

- TwoArgumentViewConstructors

- ImplementsInZCML

- SimpleViewCreationInZCML

- RemoveGetView

- ReplaceProtectWithAllow

- ViewMethodsAsViews

- MergeProtectionAndComponentDefinitions

There were also various security fixes resulting of better integration
of security with components.


=== Zope3/lib/python/Zope/Publisher/tests/BaseTestIPublicationRequest.py 1.1.4.2 => 1.1.4.3 ===
     def testSkinManagement(self):
         request = self._Test__new()
-        self.assertEqual(request.getViewSkin(), '')
+        self.assertEqual(request.getPresentationSkin(), '')
         skin = 'terse'
         request.setViewSkin(skin)
-        self.assertEqual(request.getViewSkin(), skin)
+        self.assertEqual(request.getPresentationSkin(), skin)
 
-    def test_getViewType(self):
+    def test_getPresentationType(self):
         type = self._Test__expectedViewType()
         request = self._Test__new()
-        self.assertEqual(request.getViewType(), type)
+        self.assertEqual(request.getPresentationType(), type)