Author: jmorliaguet
Date: Mon Jul  3 11:55:17 2006
New Revision: 3604

Modified:
   cpsskins/branches/paris-sprint-2006/browser/negotiation/README.txt

Log:

- test fixes



Modified: cpsskins/branches/paris-sprint-2006/browser/negotiation/README.txt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/browser/negotiation/README.txt  
(original)
+++ cpsskins/branches/paris-sprint-2006/browser/negotiation/README.txt  Mon Jul 
 3 11:55:17 2006
@@ -81,8 +81,6 @@
 
     >>> from zope.component import getMultiAdapter
     >>> from cpsskins.browser.negotiation.interfaces import INegotiation
-    >>> negotiation = getMultiAdapter((root, request), INegotiation,
-    ...                               name='negotiation')
 
 Pages
 -----
@@ -92,6 +90,8 @@
 If nothing is specified, the default theme is returned:
 
     >>> request = TestRequest(environ={'REQUEST_URI': 
u'/++skin++cpsskins/123'})
+    >>> negotiation = getMultiAdapter((root, request), INegotiation,
+    ...                               name='negotiation')
     >>> page = negotiation.getPage()
     >>> page.theme, page
     (Theme('Theme 1'), ThemePage('A page'))
@@ -101,7 +101,9 @@
     ...?page=Theme-2:ThemePage
 
     >>> request = TestRequest(environ={'REQUEST_URI': 
u'/++skin++cpsskins/123'},
-                              form={'page': u'Theme-2:ThemePage'})
+    ...                       form={'page': u'Theme-2:ThemePage'})
+    >>> negotiation = getMultiAdapter((root, request), INegotiation,
+    ...                               name='negotiation')
     >>> page = negotiation.getPage()
     >>> page.theme, page
     (Theme('Theme 2'), ThemePage('A page'))
@@ -113,6 +115,8 @@
 
     >>> request = TestRequest(environ={'REQUEST_URI': 
u'/++skin++cpsskins/123'})
     >>> request.response.setCookie('cpsskins_page', u'Theme-3:ThemePage')
+    >>> negotiation = getMultiAdapter((root, request), INegotiation,
+    ...                               name='negotiation')
     >>> page = negotiation.getPage()
     >>> page.theme, page
     (Theme('Theme 3'), ThemePage('A page'))
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to