[Checkins] SVN: zope.app.testing/trunk/ Fix tests and get ready for release.

Stephan Richter srichter at gmail.com
Thu Jul 23 15:00:22 EDT 2009


Log message for revision 102173:
  Fix tests and get ready for release.
  

Changed:
  U   zope.app.testing/trunk/CHANGES.txt
  U   zope.app.testing/trunk/setup.py
  U   zope.app.testing/trunk/src/zope/app/testing/cookieTestOne.txt
  U   zope.app.testing/trunk/src/zope/app/testing/cookieTestTwo.txt

-=-
Modified: zope.app.testing/trunk/CHANGES.txt
===================================================================
--- zope.app.testing/trunk/CHANGES.txt	2009-07-23 18:52:13 UTC (rev 102172)
+++ zope.app.testing/trunk/CHANGES.txt	2009-07-23 19:00:22 UTC (rev 102173)
@@ -2,10 +2,11 @@
 CHANGES
 =======
 
-3.7.1 (unreleased)
+3.7.1 (2009-07-21)
 ------------------
 
-- Nothing changed yet.
+- Fixed failing tests. The code revealed that the tests expected the wrong
+  value.
 
 
 3.7.0 (2009-06-19)

Modified: zope.app.testing/trunk/setup.py
===================================================================
--- zope.app.testing/trunk/setup.py	2009-07-23 18:52:13 UTC (rev 102172)
+++ zope.app.testing/trunk/setup.py	2009-07-23 19:00:22 UTC (rev 102173)
@@ -22,7 +22,7 @@
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
 setup(name='zope.app.testing',
-      version = '3.7.1dev',
+      version = '3.7.1',
       author='Zope Corporation and Contributors',
       author_email='zope-dev at zope.org',
       description='Zope Application Testing Support',

Modified: zope.app.testing/trunk/src/zope/app/testing/cookieTestOne.txt
===================================================================
--- zope.app.testing/trunk/src/zope/app/testing/cookieTestOne.txt	2009-07-23 18:52:13 UTC (rev 102172)
+++ zope.app.testing/trunk/src/zope/app/testing/cookieTestOne.txt	2009-07-23 19:00:22 UTC (rev 102173)
@@ -21,7 +21,9 @@
 is a CookieHandler() object.
 
   >>> response = DummyCookiesResponse(dict(
-  ...     proton=dict(value='fromCookieTestOne', path='/foo', comment='rest is ignored'),
+  ...     proton=dict(value='fromCookieTestOne',
+  ...                 path='/foo',
+  ...                 comment='rest is ignored'),
   ...     neutron=dict(value='fromCookieTestOne')))
 
 If 'http' is created as a global variable, then every doctest in this
@@ -34,7 +36,7 @@
   2
 
   >>> http.cookies['proton'].OutputString()
-  'proton=fromCookieTestOne; Path=/foo;'
+  'proton=fromCookieTestOne; Path=/foo'
 
   >>> http.cookies
   <SimpleCookie: neutron='fromCookieTestOne' proton='fromCookieTestOne'>
@@ -55,4 +57,6 @@
   >>> parts = cookieHeader.split('; ')
   >>> parts.sort()
   >>> parts
-  ['electron=fromCookieTestOne', 'neutron=fromCookieTestOne', 'proton=fromCookieTestOne']
+  ['electron=fromCookieTestOne',
+   'neutron=fromCookieTestOne',
+   'proton=fromCookieTestOne']

Modified: zope.app.testing/trunk/src/zope/app/testing/cookieTestTwo.txt
===================================================================
--- zope.app.testing/trunk/src/zope/app/testing/cookieTestTwo.txt	2009-07-23 18:52:13 UTC (rev 102172)
+++ zope.app.testing/trunk/src/zope/app/testing/cookieTestTwo.txt	2009-07-23 19:00:22 UTC (rev 102173)
@@ -16,15 +16,17 @@
   >>> from zope.app.testing.tests import DummyCookiesResponse
 
   >>> response = DummyCookiesResponse(dict(
-  ...     cobalt=dict(value='fromCookieTestTwo', path='/foo', comment='rest is ignored'),
+  ...     cobalt=dict(value='fromCookieTestTwo',
+  ...                 path='/foo',
+  ...                 comment='rest is ignored'),
   ...     crimson=dict(value='fromCookieTestTwo')))
 
   >>> http.saveCookies(response)
   >>> len(http.cookies)
   2
-        
+
   >>> http.cookies['cobalt'].OutputString()
-  'cobalt=fromCookieTestTwo; Path=/foo;'
+  'cobalt=fromCookieTestTwo; Path=/foo'
 
   >>> http.cookies
   <SimpleCookie: cobalt='fromCookieTestTwo' crimson='fromCookieTestTwo'>
@@ -45,4 +47,6 @@
   >>> parts = cookieHeader.split('; ')
   >>> parts.sort()
   >>> parts
-  ['amber=fromCookieTestTwo', 'cobalt=fromCookieTestTwo', 'crimson=fromCookieTestTwo']
+  ['amber=fromCookieTestTwo',
+   'cobalt=fromCookieTestTwo',
+   'crimson=fromCookieTestTwo']



More information about the Checkins mailing list