[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/AbsoluteURL/tests - testAbsoluteURL.py:1.1.2.2
Jim Fulton
jim@zope.com
Tue, 9 Apr 2002 12:10:38 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/AbsoluteURL/tests
In directory cvs.zope.org:/tmp/cvs-serv4945/tests
Modified Files:
Tag: Zope-3x-branch
testAbsoluteURL.py
Log Message:
Fixed bug in handling failed url case.
=== Zope3/lib/python/Zope/App/ZopePublication/AbsoluteURL/tests/testAbsoluteURL.py 1.1.2.1 => 1.1.2.2 ===
provideView(None, 'url', IBrowserPublisher, AbsoluteURL)
provideView(IRoot, 'url', IBrowserPublisher, SiteAbsoluteURL)
+
+ def testBadObject(self):
+ request = TestRequest()
+ request.setViewType(IBrowserPublisher)
+ view = getRequestView(None, 'url', request)
+ self.assertRaises(TypeError, view.__str__)
def testNoContext(self):
request = TestRequest()