[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/AbsoluteURL/tests - testAbsoluteURL.py:1.1.2.5.4.3

Steve Alexander steve@cat-box.net
Tue, 4 Jun 2002 09:20:38 -0400


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

Modified Files:
      Tag: Zope3InWonderland-branch
	testAbsoluteURL.py 
Log Message:
removed InsecureMarker and make object a Rock instead.



=== Zope3/lib/python/Zope/App/ZopePublication/AbsoluteURL/tests/testAbsoluteURL.py 1.1.2.5.4.2 => 1.1.2.5.4.3 ===
 class Root:
     __implements__ = IRoot
+    
+class TrivialContent(object):
+    """Trivial content object, used because instances of object are rocks."""
 
 class Test(PlacelessSetup, TestCase):
 
@@ -59,9 +62,9 @@
         request = TestRequest()
         request.setViewType(IBrowserPresentation)
 
-        content = ContextWrapper(object(), Root(), name='a')
-        content = ContextWrapper(object(), content, name='b')
-        content = ContextWrapper(object(), content, name='c')
+        content = ContextWrapper(TrivialContent(), Root(), name='a')
+        content = ContextWrapper(TrivialContent(), content, name='b')
+        content = ContextWrapper(TrivialContent(), content, name='c')
         view = getView(content, 'absolute_url', request)
         self.assertEqual(str(view), 'http://foobar.com/a/b/c')