[Zope3-checkins] CVS: Zope3/src/zope/publisher/tests - test_browserrequest.py:1.6
Viktorija Zaksiene
ryzaja@codeworks.lt
Fri, 11 Apr 2003 06:08:10 -0400
Update of /cvs-repository/Zope3/src/zope/publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv2884/tests
Modified Files:
test_browserrequest.py
Log Message:
Removed IBrowserPublication from the list of interfaces implemented by
BrowserRequest. Removed IVirtualHostRequest from IBrowserRequest. Added
test for interface implementation.
=== Zope3/src/zope/publisher/tests/test_browserrequest.py 1.5 => 1.6 ===
--- Zope3/src/zope/publisher/tests/test_browserrequest.py:1.5 Tue Apr 8 03:29:36 2003
+++ Zope3/src/zope/publisher/tests/test_browserrequest.py Fri Apr 11 06:08:10 2003
@@ -25,7 +25,9 @@
from zope.publisher.interfaces import NotFound
from zope.publisher.base import DefaultPublication
-from zope.publisher.interfaces.browser import IBrowserPresentation
+from zope.publisher.interfaces.browser \
+ import IBrowserPresentation, IBrowserRequest, IBrowserApplicationRequest
+from zope.interface.verify import verifyObject
from StringIO import StringIO
@@ -255,6 +257,10 @@
publish(request)
self.assertEqual(request.form, {u'a':u'b +/=&b:int'})
+ def testInterface(self):
+ request = self._createRequest()
+ verifyObject(IBrowserRequest, request)
+ verifyObject(IBrowserApplicationRequest, request)
def test_suite():
loader = unittest.TestLoader()