[Zope-CVS] CVS: Products/CookieCrumbler/tests - testCookieCrumbler.py:1.7

Shane Hathaway shane at zope.com
Thu Feb 5 10:35:17 EST 2004


Update of /cvs-repository/Products/CookieCrumbler/tests
In directory cvs.zope.org:/tmp/cvs-serv1370/tests

Modified Files:
	testCookieCrumbler.py 
Log Message:
Added the twiddleAuthCookie feature from CMF.


=== Products/CookieCrumbler/tests/testCookieCrumbler.py 1.6 => 1.7 ===
--- Products/CookieCrumbler/tests/testCookieCrumbler.py:1.6	Thu Jan 22 11:41:01 2004
+++ Products/CookieCrumbler/tests/testCookieCrumbler.py	Thu Feb  5 10:35:16 2004
@@ -10,7 +10,7 @@
 # FOR A PARTICULAR PURPOSE
 #
 ##############################################################################
-"""CookieCrumbler unit tests.
+"""CookieCrumbler tests.
 
 $Id$
 """
@@ -31,7 +31,7 @@
 from ZPublisher.HTTPResponse import HTTPResponse
 from ZPublisher.BaseRequest import RequestContainer
 
-from Products.CookieCrumbler.CookieCrumbler \
+from Products.CMFCore.CookieCrumbler \
      import CookieCrumbler, manage_addCC, Redirect
 
 
@@ -300,6 +300,9 @@
 
     def testCreateForms(self):
         # Verify the factory creates the login forms.
+        if 'CMFCore' in CookieCrumbler.__module__:
+            # This test is disabled in CMFCore.
+            return
         self.root._delObject('cookie_authentication')
         manage_addCC(self.root, 'login', create_forms=1)
         ids = self.root.login.objectIds()




More information about the Zope-CVS mailing list