[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_cookiesessionservice.py:1.3

Steve Alexander steve@cat-box.net
Fri, 28 Feb 2003 09:20:10 -0500


Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv31499/src/zope/app/services/tests

Modified Files:
	test_cookiesessionservice.py 
Log Message:
Made the sessions service use the application URL from the request as the
path of the cookies it sets.


=== Zope3/src/zope/app/services/tests/test_cookiesessionservice.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/tests/test_cookiesessionservice.py:1.2	Thu Feb 27 03:11:32 2003
+++ Zope3/src/zope/app/services/tests/test_cookiesessionservice.py	Fri Feb 28 09:19:38 2003
@@ -59,6 +59,12 @@
             return default
         return {'value':value}
 
+    def getApplicationURL(self, depth=0, path_only=False):
+        if depth == 0 and path_only:
+            return '/'
+        raise AssertionError(
+            'Inappropriate arguments passed to getApplicationURL')
+
 
 class SessionServiceTestCaseMixin(PlacefulSetup):