diff -Nru zope.app.testing-3.9.0/CHANGES.txt zope.app.testing-3.10.0/CHANGES.txt --- zope.app.testing-3.9.0/CHANGES.txt 2011-03-14 09:12:02.000000000 +0000 +++ zope.app.testing-3.10.0/CHANGES.txt 2012-01-13 23:18:31.000000000 +0000 @@ -2,6 +2,14 @@ CHANGES ======= +3.10.0 (2012-01-13) +------------------- + +- Removed test dependency on ``zope.app.authentication``. + + zope.testbrowser 4 depends on this change (seriously) if it find + zope.app.testing. + 3.9.0 (2011-03-14) ------------------ diff -Nru zope.app.testing-3.9.0/debian/changelog zope.app.testing-3.10.0/debian/changelog --- zope.app.testing-3.9.0/debian/changelog 2012-01-07 17:52:41.000000000 +0000 +++ zope.app.testing-3.10.0/debian/changelog 2012-01-24 16:39:05.000000000 +0000 @@ -1,3 +1,9 @@ +zope.app.testing (3.10.0-0ubuntu1) precise; urgency=low + + * New upstream release. + + -- Gediminas Paulauskas Tue, 24 Jan 2012 18:38:57 +0200 + zope.app.testing (3.9.0-0ubuntu1) precise; urgency=low * New upstream release. diff -Nru zope.app.testing-3.9.0/debian/tests/control zope.app.testing-3.10.0/debian/tests/control --- zope.app.testing-3.9.0/debian/tests/control 2012-01-07 17:40:32.000000000 +0000 +++ zope.app.testing-3.10.0/debian/tests/control 2012-01-24 16:36:43.000000000 +0000 @@ -1,3 +1,3 @@ Tests: all Features: no-build-needed -Depends: @, python-zope.testrunner, python-zodb, python-zope.app.authentication, python-zope.app.zcmlfiles, python-zope.login, python-zope.publisher (>= 3.12), python-zope.securitypolicy +Depends: @, python-zope.testrunner, python-zodb, python-zope.app.zcmlfiles, python-zope.login, python-zope.publisher (>= 3.12), python-zope.securitypolicy diff -Nru zope.app.testing-3.9.0/PKG-INFO zope.app.testing-3.10.0/PKG-INFO --- zope.app.testing-3.9.0/PKG-INFO 2011-03-14 09:12:39.000000000 +0000 +++ zope.app.testing-3.10.0/PKG-INFO 2012-01-13 23:19:39.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: zope.app.testing -Version: 3.9.0 +Version: 3.10.0 Summary: Zope Application Testing Support Home-page: http://pypi.python.org/pypi/zope.app.testing Author: Zope Foundation and Contributors @@ -23,32 +23,32 @@ 1. Use a clean/missing Data.fs 2. Create a manager with the name "mgr", password "mgrpw", and grant - the zope.Manager role. + the zope.Manager role. 3. Install tcpwatch. 4. Create a temporary directory to record tcpwatch output. 5. Run tcpwatch using: - tcpwatch.py -L 8081:8080 -s -r tmpdir - (the ports are the listening port and forwarded-to port; the - second need to match the Zope configuration) + tcpwatch.py -L 8081:8080 -s -r tmpdir + (the ports are the listening port and forwarded-to port; the + second need to match the Zope configuration) 6. In a browser, connect to the listening port and do whatever needs - to be recorded. + to be recorded. 7. Shut down tcpwatch. 8. Run the script src/zope/app/testing/dochttp.py: - python2.4 src/zope/app/testing/dochttp.py tmpdir > somefile.txt + python2.4 src/zope/app/testing/dochttp.py tmpdir > somefile.txt 9. Edit the generated text file to add explanations and elide - uninteresting portions of the output. + uninteresting portions of the output. - 10. In a functional test module (usually ftests.py), import - FunctionalDocFileSuite from zope.app.testing.functional and - instantiate it, passing the name of the text file containing - the test. + 10. In a functional test module (usually ftests.py), import + FunctionalDocFileSuite from zope.app.testing.functional and + instantiate it, passing the name of the text file containing + the test. @@ -73,39 +73,39 @@ First, we'll test accessing a protected page without credentials: - >>> print http(r""" - ... GET /@@contents.html HTTP/1.1 - ... """) - HTTP/1.1 401 Unauthorized - Cache-Control: no-store, no-cache, must-revalidate - Content-Length: ... - Content-Type: text/html;charset=utf-8 - Expires: Mon, 26 Jul 1997 05:00:00 GMT - Pragma: no-cache - WWW-Authenticate: basic realm="Zope" - - >> print http(r""" + ... GET /@@contents.html HTTP/1.1 + ... """) + HTTP/1.1 401 Unauthorized + Cache-Control: no-store, no-cache, must-revalidate + Content-Length: ... + Content-Type: text/html;charset=utf-8 + Expires: Mon, 26 Jul 1997 05:00:00 GMT + Pragma: no-cache + WWW-Authenticate: basic realm="Zope" + + >> print http(r""" - ... GET /@@contents.html HTTP/1.1 - ... Authorization: Basic mgr:mgrpw - ... """) - HTTP/1.1 200 OK - Content-Length: ... - Content-Type: text/html;charset=utf-8 - - >> print http(r""" + ... GET /@@contents.html HTTP/1.1 + ... Authorization: Basic mgr:mgrpw + ... """) + HTTP/1.1 200 OK + Content-Length: ... + Content-Type: text/html;charset=utf-8 + + >> print http(r""" - ... GET /++etc++site/@@manage HTTP/1.1 - ... Authorization: Basic mgr:mgrpw - ... Referer: http://localhost:8081/ - ... """) - HTTP/1.1 303 See Other - Content-Length: 0 - Content-Type: text/plain;charset=utf-8 - Location: @@contents.html - + >>> print http(r""" + ... GET /++etc++site/@@manage HTTP/1.1 + ... Authorization: Basic mgr:mgrpw + ... Referer: http://localhost:8081/ + ... """) + HTTP/1.1 303 See Other + Content-Length: 0 + Content-Type: text/plain;charset=utf-8 + Location: @@contents.html + Note that, in this case, we got a 303 response. A 303 response is the prefered response for this sort of redirect with HTTP 1.1. If we used HTTP 1.0, we'd get a 302 response: - >>> print http(r""" - ... GET /++etc++site/@@manage HTTP/1.0 - ... Authorization: Basic mgr:mgrpw - ... Referer: http://localhost:8081/ - ... """) - HTTP/1.0 302 Moved Temporarily - Content-Length: 0 - Content-Type: text/plain;charset=utf-8 - Location: @@contents.html - + >>> print http(r""" + ... GET /++etc++site/@@manage HTTP/1.0 + ... Authorization: Basic mgr:mgrpw + ... Referer: http://localhost:8081/ + ... """) + HTTP/1.0 302 Moved Temporarily + Content-Length: 0 + Content-Type: text/plain;charset=utf-8 + Location: @@contents.html + Lets visit the page we were redirected to: - >>> print http(r""" - ... GET /++etc++site/@@contents.html HTTP/1.1 - ... Authorization: Basic mgr:mgrpw - ... Referer: http://localhost:8081/ - ... """) - HTTP/1.1 200 OK - Content-Length: ... - Content-Type: text/html;charset=utf-8 - - >> print http(r""" + ... GET /++etc++site/@@contents.html HTTP/1.1 + ... Authorization: Basic mgr:mgrpw + ... Referer: http://localhost:8081/ + ... """) + HTTP/1.1 200 OK + Content-Length: ... + Content-Type: text/html;charset=utf-8 + + >> print http(r""" - ... GET / HTTP/1.1 - ... Authorization: Basic mgr:mgrpw - ... """) - HTTP/1.1 200 OK - Content-Length: ... - Content-Type: text/html;charset=utf-8 - - >> print http(r""" + ... GET / HTTP/1.1 + ... Authorization: Basic mgr:mgrpw + ... """) + HTTP/1.1 200 OK + Content-Length: ... + Content-Type: text/html;charset=utf-8 + + >> root = getRootFolder() - >>> root - + >>> root = getRootFolder() + >>> root + You can intermix HTTP requests with regular Python calls. Note, however, that making an `http()` call implied a transaction commit. If you want to throw away changes made in Python code, abort the transaction before the HTTP request. - >>> print http(r""" - ... POST /@@contents.html HTTP/1.1 - ... Authorization: Basic mgr:mgrpw - ... Content-Length: 73 - ... Content-Type: application/x-www-form-urlencoded - ... - ... type_name=BrowserAdd__zope.site.folder.Folder&new_value=f1""", - ... handle_errors=False) - HTTP/1.1 303 See Other - Content-Length: ... - Content-Type: text/html;charset=utf-8 - Location: http://localhost/@@contents.html - - >> print http(r""" + ... POST /@@contents.html HTTP/1.1 + ... Authorization: Basic mgr:mgrpw + ... Content-Length: 73 + ... Content-Type: application/x-www-form-urlencoded + ... + ... type_name=BrowserAdd__zope.site.folder.Folder&new_value=f1""", + ... handle_errors=False) + HTTP/1.1 303 See Other + Content-Length: ... + Content-Type: text/html;charset=utf-8 + Location: http://localhost/@@contents.html + + >> list(root.keys()) - [u'f1'] + >>> list(root.keys()) + [u'f1'] ======= CHANGES ======= + 3.10.0 (2012-01-13) + ------------------- + + - Removed test dependency on ``zope.app.authentication``. + + zope.testbrowser 4 depends on this change (seriously) if it find + zope.app.testing. + 3.9.0 (2011-03-14) ------------------ - Move zope.app.testing testbrowser functionality into zope.app.testing. This - requires zope.testbrowser version 4.0.0 or above. + requires zope.testbrowser version 4.0.0 or above. 3.8.1 (2011-01-07) ------------------ @@ -221,15 +229,15 @@ ------------------ - Remove invalid HTTP_REFERER default. (We both don't want a default to allow - others testing without a referer and 'localhost' is not a reasonable - default anyway.) This improves the situation for #98437 + others testing without a referer and 'localhost' is not a reasonable + default anyway.) This improves the situation for #98437 - Made the xmlrpc code compatible with Python 2.7. - Removed test dependency on ``zope.app.zptpage``. - Switched test dependency from ``zope.app.securitypolicy`` to - ``zope.securitypolicy``. + ``zope.securitypolicy``. 3.7.7 (2010-09-14) @@ -248,17 +256,17 @@ ------------------ - Switch doctests to use the stdlib ``doctest`` module, rather than the - deprecated ``zope.testing.doctest`` variant. + deprecated ``zope.testing.doctest`` variant. 3.7.4 (2010-01-08) ------------------ - Import hooks functionality from zope.component after it was moved there from - zope.site. + zope.site. - Import ISite from zope.component after it was moved there from - zope.location. This lifts the dependency on zope.location. + zope.location. This lifts the dependency on zope.location. - Fix tests using a newer zope.publisher that requires zope.login. @@ -266,27 +274,27 @@ ------------------ - Fixed tests for python 2.4 as well as python 2.5 and 2.6; the change in - version 3.7.1 introduced test regressions in python 2.4. + version 3.7.1 introduced test regressions in python 2.4. 3.7.2 (2009-07-24) ------------------ - Adjusted tests after the referenced memory leak problem has been fixed in - ``zope.component``. + ``zope.component``. 3.7.1 (2009-07-21) ------------------ - Fixed failing tests. The code revealed that the tests expected the wrong - value. + value. 3.7.0 (2009-06-19) ------------------ - Depend on new ``zope.processlifetime`` interfaces instead of using - BBB imports from ``zope.app.appsetup``. + BBB imports from ``zope.app.appsetup``. - Removed unused dependency on ``zope.app.component``. @@ -295,23 +303,23 @@ ------------------ - Removed deprecated back35 module and loose the dependency on - ``zope.deferredimport``. + ``zope.deferredimport``. - Adapt to ``zope.app.authentication`` refactoring. We depend on - ``zope.password`` now instead. + ``zope.password`` now instead. - Adapt to latest ``zope.app.security`` refactoring. We don't need this - package anymore. + package anymore. 3.6.1 (2009-03-12) ------------------ - Use ISkinnable.providedBy(request) instead of IBrowserRequest as condition - for calling setDefaultSkin in HTTPCaller. This at the same time removes - dependency to the browser part of zope.publisher. + for calling setDefaultSkin in HTTPCaller. This at the same time removes + dependency to the browser part of zope.publisher. - Adapt to the move of IDefaultViewName from zope.component.interfaces - to zope.publisher.interfaces. + to zope.publisher.interfaces. - Remove the DEPENDENCIES.cfg file for zpkg. @@ -319,25 +327,25 @@ ------------------ - Fix AttributeError in ``zope.app.testing.setup.setUpTestAsModule`` - (when called without name argument). + (when called without name argument). - Use ``zope.container`` instead of ``zope.app.container``. - Use ``zope.site`` instead of ``zope.app.folder`` and - ``zope.app.component`` for some parts. + ``zope.app.component`` for some parts. 3.5.6 (2008-10-13) ------------------ - Change argument variable name in provideAdapter to not conflict with - buitin keyword in Python 2.6. + buitin keyword in Python 2.6. 3.5.5 (2008-10-10) ------------------ - Re-configured functional test setup to create test-specific instances - of HTTPCaller to ensure that cookies are not shared by doctests - in a test suite. + of HTTPCaller to ensure that cookies are not shared by doctests + in a test suite. 3.5.4 (2008-08-25) ------------------ @@ -357,7 +365,7 @@ - Added missing import. - Repair memory leak fix released in 3.4.3 to be more sane in the presence of - generations. + generations. 3.5.1 (2008-08-20) ------------------ @@ -368,19 +376,19 @@ ------------------ - Add support for product-configuration as part of functional layers; this - more closely mirrors the configuration order for normal operation. + more closely mirrors the configuration order for normal operation. 3.4.3 (2008-07-25) ------------------ - Fix memory leak in all functional tests. - see: https://bugs.launchpad.net/zope3/+bug/251273 + see: https://bugs.launchpad.net/zope3/+bug/251273 3.4.2 (2008-02-02) ------------------ - Fix of 599 error on conflict error in request - see: http://mail.zope.org/pipermail/zope-dev/2008-January/030844.html + see: http://mail.zope.org/pipermail/zope-dev/2008-January/030844.html 3.4.1 (2007-10-31) ------------------ diff -Nru zope.app.testing-3.9.0/setup.py zope.app.testing-3.10.0/setup.py --- zope.app.testing-3.9.0/setup.py 2011-03-14 09:12:02.000000000 +0000 +++ zope.app.testing-3.10.0/setup.py 2012-01-13 23:19:15.000000000 +0000 @@ -18,7 +18,7 @@ ############################################################################## """Setup for zope.app.testing package -$Id: setup.py 120905 2011-03-14 09:10:25Z jinty $ +$Id: setup.py 124042 2012-01-13 23:19:15Z jim $ """ import os from setuptools import setup, find_packages @@ -27,7 +27,7 @@ return open(os.path.join(os.path.dirname(__file__), *rnames)).read() setup(name='zope.app.testing', - version = '3.9.0', + version = '3.10.0', author='Zope Foundation and Contributors', author_email='zope-dev@zope.org', description='Zope Application Testing Support', @@ -58,7 +58,6 @@ namespace_packages=['zope', 'zope.app'], extras_require=dict(test=[ 'ZODB3', - 'zope.app.authentication', 'zope.app.zcmlfiles', 'zope.login', 'zope.publisher >= 3.12', @@ -66,12 +65,13 @@ ]), install_requires=['setuptools', 'zope.annotation', - 'zope.app.appsetup >=3.11.0', + 'zope.app.appsetup >= 3.11', 'zope.processlifetime', 'zope.app.debug', 'zope.app.dependable', 'zope.app.publication', - 'zope.component', + # We need zope.component with the hooks module. + 'zope.component >= 3.8', 'zope.container', 'zope.i18n', 'zope.interface', @@ -81,7 +81,7 @@ 'zope.security', 'zope.site', 'zope.testing', - 'zope.testbrowser >= 4.0.0dev', + 'zope.testbrowser >= 4', 'zope.traversing', ], include_package_data = True, diff -Nru zope.app.testing-3.9.0/src/zope/app/testing/dochttp.py zope.app.testing-3.10.0/src/zope/app/testing/dochttp.py --- zope.app.testing-3.9.0/src/zope/app/testing/dochttp.py 2011-03-14 09:12:02.000000000 +0000 +++ zope.app.testing-3.10.0/src/zope/app/testing/dochttp.py 2012-01-13 23:18:31.000000000 +0000 @@ -4,7 +4,7 @@ # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, -# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution. +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS @@ -13,7 +13,7 @@ ############################################################################## """Convert an http tcpwatch session to a doctest -$Id: dochttp.py 110724 2010-04-11 00:04:11Z tseaver $ +$Id: dochttp.py 123984 2012-01-07 17:43:12Z menesis $ """ import errno diff -Nru zope.app.testing-3.9.0/src/zope/app/testing/ftesting.zcml zope.app.testing-3.10.0/src/zope/app/testing/ftesting.zcml --- zope.app.testing-3.9.0/src/zope/app/testing/ftesting.zcml 2011-03-14 09:12:02.000000000 +0000 +++ zope.app.testing-3.10.0/src/zope/app/testing/ftesting.zcml 2012-01-13 23:18:31.000000000 +0000 @@ -10,9 +10,9 @@ - + diff -Nru zope.app.testing-3.9.0/src/zope/app/testing/tests.py zope.app.testing-3.10.0/src/zope/app/testing/tests.py --- zope.app.testing-3.9.0/src/zope/app/testing/tests.py 2011-03-14 09:12:02.000000000 +0000 +++ zope.app.testing-3.10.0/src/zope/app/testing/tests.py 2012-01-13 23:18:31.000000000 +0000 @@ -4,7 +4,7 @@ # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, -# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution. +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS @@ -13,7 +13,7 @@ ############################################################################## """Test tcpdoc -$Id: tests.py 120905 2011-03-14 09:10:25Z jinty $ +$Id: tests.py 123984 2012-01-07 17:43:12Z menesis $ """ from doctest import DocTestSuite import os diff -Nru zope.app.testing-3.9.0/src/zope.app.testing.egg-info/PKG-INFO zope.app.testing-3.10.0/src/zope.app.testing.egg-info/PKG-INFO --- zope.app.testing-3.9.0/src/zope.app.testing.egg-info/PKG-INFO 2011-03-14 09:12:39.000000000 +0000 +++ zope.app.testing-3.10.0/src/zope.app.testing.egg-info/PKG-INFO 2012-01-13 23:19:39.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: zope.app.testing -Version: 3.9.0 +Version: 3.10.0 Summary: Zope Application Testing Support Home-page: http://pypi.python.org/pypi/zope.app.testing Author: Zope Foundation and Contributors @@ -23,32 +23,32 @@ 1. Use a clean/missing Data.fs 2. Create a manager with the name "mgr", password "mgrpw", and grant - the zope.Manager role. + the zope.Manager role. 3. Install tcpwatch. 4. Create a temporary directory to record tcpwatch output. 5. Run tcpwatch using: - tcpwatch.py -L 8081:8080 -s -r tmpdir - (the ports are the listening port and forwarded-to port; the - second need to match the Zope configuration) + tcpwatch.py -L 8081:8080 -s -r tmpdir + (the ports are the listening port and forwarded-to port; the + second need to match the Zope configuration) 6. In a browser, connect to the listening port and do whatever needs - to be recorded. + to be recorded. 7. Shut down tcpwatch. 8. Run the script src/zope/app/testing/dochttp.py: - python2.4 src/zope/app/testing/dochttp.py tmpdir > somefile.txt + python2.4 src/zope/app/testing/dochttp.py tmpdir > somefile.txt 9. Edit the generated text file to add explanations and elide - uninteresting portions of the output. + uninteresting portions of the output. - 10. In a functional test module (usually ftests.py), import - FunctionalDocFileSuite from zope.app.testing.functional and - instantiate it, passing the name of the text file containing - the test. + 10. In a functional test module (usually ftests.py), import + FunctionalDocFileSuite from zope.app.testing.functional and + instantiate it, passing the name of the text file containing + the test. @@ -73,39 +73,39 @@ First, we'll test accessing a protected page without credentials: - >>> print http(r""" - ... GET /@@contents.html HTTP/1.1 - ... """) - HTTP/1.1 401 Unauthorized - Cache-Control: no-store, no-cache, must-revalidate - Content-Length: ... - Content-Type: text/html;charset=utf-8 - Expires: Mon, 26 Jul 1997 05:00:00 GMT - Pragma: no-cache - WWW-Authenticate: basic realm="Zope" - - >> print http(r""" + ... GET /@@contents.html HTTP/1.1 + ... """) + HTTP/1.1 401 Unauthorized + Cache-Control: no-store, no-cache, must-revalidate + Content-Length: ... + Content-Type: text/html;charset=utf-8 + Expires: Mon, 26 Jul 1997 05:00:00 GMT + Pragma: no-cache + WWW-Authenticate: basic realm="Zope" + + >> print http(r""" - ... GET /@@contents.html HTTP/1.1 - ... Authorization: Basic mgr:mgrpw - ... """) - HTTP/1.1 200 OK - Content-Length: ... - Content-Type: text/html;charset=utf-8 - - >> print http(r""" + ... GET /@@contents.html HTTP/1.1 + ... Authorization: Basic mgr:mgrpw + ... """) + HTTP/1.1 200 OK + Content-Length: ... + Content-Type: text/html;charset=utf-8 + + >> print http(r""" - ... GET /++etc++site/@@manage HTTP/1.1 - ... Authorization: Basic mgr:mgrpw - ... Referer: http://localhost:8081/ - ... """) - HTTP/1.1 303 See Other - Content-Length: 0 - Content-Type: text/plain;charset=utf-8 - Location: @@contents.html - + >>> print http(r""" + ... GET /++etc++site/@@manage HTTP/1.1 + ... Authorization: Basic mgr:mgrpw + ... Referer: http://localhost:8081/ + ... """) + HTTP/1.1 303 See Other + Content-Length: 0 + Content-Type: text/plain;charset=utf-8 + Location: @@contents.html + Note that, in this case, we got a 303 response. A 303 response is the prefered response for this sort of redirect with HTTP 1.1. If we used HTTP 1.0, we'd get a 302 response: - >>> print http(r""" - ... GET /++etc++site/@@manage HTTP/1.0 - ... Authorization: Basic mgr:mgrpw - ... Referer: http://localhost:8081/ - ... """) - HTTP/1.0 302 Moved Temporarily - Content-Length: 0 - Content-Type: text/plain;charset=utf-8 - Location: @@contents.html - + >>> print http(r""" + ... GET /++etc++site/@@manage HTTP/1.0 + ... Authorization: Basic mgr:mgrpw + ... Referer: http://localhost:8081/ + ... """) + HTTP/1.0 302 Moved Temporarily + Content-Length: 0 + Content-Type: text/plain;charset=utf-8 + Location: @@contents.html + Lets visit the page we were redirected to: - >>> print http(r""" - ... GET /++etc++site/@@contents.html HTTP/1.1 - ... Authorization: Basic mgr:mgrpw - ... Referer: http://localhost:8081/ - ... """) - HTTP/1.1 200 OK - Content-Length: ... - Content-Type: text/html;charset=utf-8 - - >> print http(r""" + ... GET /++etc++site/@@contents.html HTTP/1.1 + ... Authorization: Basic mgr:mgrpw + ... Referer: http://localhost:8081/ + ... """) + HTTP/1.1 200 OK + Content-Length: ... + Content-Type: text/html;charset=utf-8 + + >> print http(r""" - ... GET / HTTP/1.1 - ... Authorization: Basic mgr:mgrpw - ... """) - HTTP/1.1 200 OK - Content-Length: ... - Content-Type: text/html;charset=utf-8 - - >> print http(r""" + ... GET / HTTP/1.1 + ... Authorization: Basic mgr:mgrpw + ... """) + HTTP/1.1 200 OK + Content-Length: ... + Content-Type: text/html;charset=utf-8 + + >> root = getRootFolder() - >>> root - + >>> root = getRootFolder() + >>> root + You can intermix HTTP requests with regular Python calls. Note, however, that making an `http()` call implied a transaction commit. If you want to throw away changes made in Python code, abort the transaction before the HTTP request. - >>> print http(r""" - ... POST /@@contents.html HTTP/1.1 - ... Authorization: Basic mgr:mgrpw - ... Content-Length: 73 - ... Content-Type: application/x-www-form-urlencoded - ... - ... type_name=BrowserAdd__zope.site.folder.Folder&new_value=f1""", - ... handle_errors=False) - HTTP/1.1 303 See Other - Content-Length: ... - Content-Type: text/html;charset=utf-8 - Location: http://localhost/@@contents.html - - >> print http(r""" + ... POST /@@contents.html HTTP/1.1 + ... Authorization: Basic mgr:mgrpw + ... Content-Length: 73 + ... Content-Type: application/x-www-form-urlencoded + ... + ... type_name=BrowserAdd__zope.site.folder.Folder&new_value=f1""", + ... handle_errors=False) + HTTP/1.1 303 See Other + Content-Length: ... + Content-Type: text/html;charset=utf-8 + Location: http://localhost/@@contents.html + + >> list(root.keys()) - [u'f1'] + >>> list(root.keys()) + [u'f1'] ======= CHANGES ======= + 3.10.0 (2012-01-13) + ------------------- + + - Removed test dependency on ``zope.app.authentication``. + + zope.testbrowser 4 depends on this change (seriously) if it find + zope.app.testing. + 3.9.0 (2011-03-14) ------------------ - Move zope.app.testing testbrowser functionality into zope.app.testing. This - requires zope.testbrowser version 4.0.0 or above. + requires zope.testbrowser version 4.0.0 or above. 3.8.1 (2011-01-07) ------------------ @@ -221,15 +229,15 @@ ------------------ - Remove invalid HTTP_REFERER default. (We both don't want a default to allow - others testing without a referer and 'localhost' is not a reasonable - default anyway.) This improves the situation for #98437 + others testing without a referer and 'localhost' is not a reasonable + default anyway.) This improves the situation for #98437 - Made the xmlrpc code compatible with Python 2.7. - Removed test dependency on ``zope.app.zptpage``. - Switched test dependency from ``zope.app.securitypolicy`` to - ``zope.securitypolicy``. + ``zope.securitypolicy``. 3.7.7 (2010-09-14) @@ -248,17 +256,17 @@ ------------------ - Switch doctests to use the stdlib ``doctest`` module, rather than the - deprecated ``zope.testing.doctest`` variant. + deprecated ``zope.testing.doctest`` variant. 3.7.4 (2010-01-08) ------------------ - Import hooks functionality from zope.component after it was moved there from - zope.site. + zope.site. - Import ISite from zope.component after it was moved there from - zope.location. This lifts the dependency on zope.location. + zope.location. This lifts the dependency on zope.location. - Fix tests using a newer zope.publisher that requires zope.login. @@ -266,27 +274,27 @@ ------------------ - Fixed tests for python 2.4 as well as python 2.5 and 2.6; the change in - version 3.7.1 introduced test regressions in python 2.4. + version 3.7.1 introduced test regressions in python 2.4. 3.7.2 (2009-07-24) ------------------ - Adjusted tests after the referenced memory leak problem has been fixed in - ``zope.component``. + ``zope.component``. 3.7.1 (2009-07-21) ------------------ - Fixed failing tests. The code revealed that the tests expected the wrong - value. + value. 3.7.0 (2009-06-19) ------------------ - Depend on new ``zope.processlifetime`` interfaces instead of using - BBB imports from ``zope.app.appsetup``. + BBB imports from ``zope.app.appsetup``. - Removed unused dependency on ``zope.app.component``. @@ -295,23 +303,23 @@ ------------------ - Removed deprecated back35 module and loose the dependency on - ``zope.deferredimport``. + ``zope.deferredimport``. - Adapt to ``zope.app.authentication`` refactoring. We depend on - ``zope.password`` now instead. + ``zope.password`` now instead. - Adapt to latest ``zope.app.security`` refactoring. We don't need this - package anymore. + package anymore. 3.6.1 (2009-03-12) ------------------ - Use ISkinnable.providedBy(request) instead of IBrowserRequest as condition - for calling setDefaultSkin in HTTPCaller. This at the same time removes - dependency to the browser part of zope.publisher. + for calling setDefaultSkin in HTTPCaller. This at the same time removes + dependency to the browser part of zope.publisher. - Adapt to the move of IDefaultViewName from zope.component.interfaces - to zope.publisher.interfaces. + to zope.publisher.interfaces. - Remove the DEPENDENCIES.cfg file for zpkg. @@ -319,25 +327,25 @@ ------------------ - Fix AttributeError in ``zope.app.testing.setup.setUpTestAsModule`` - (when called without name argument). + (when called without name argument). - Use ``zope.container`` instead of ``zope.app.container``. - Use ``zope.site`` instead of ``zope.app.folder`` and - ``zope.app.component`` for some parts. + ``zope.app.component`` for some parts. 3.5.6 (2008-10-13) ------------------ - Change argument variable name in provideAdapter to not conflict with - buitin keyword in Python 2.6. + buitin keyword in Python 2.6. 3.5.5 (2008-10-10) ------------------ - Re-configured functional test setup to create test-specific instances - of HTTPCaller to ensure that cookies are not shared by doctests - in a test suite. + of HTTPCaller to ensure that cookies are not shared by doctests + in a test suite. 3.5.4 (2008-08-25) ------------------ @@ -357,7 +365,7 @@ - Added missing import. - Repair memory leak fix released in 3.4.3 to be more sane in the presence of - generations. + generations. 3.5.1 (2008-08-20) ------------------ @@ -368,19 +376,19 @@ ------------------ - Add support for product-configuration as part of functional layers; this - more closely mirrors the configuration order for normal operation. + more closely mirrors the configuration order for normal operation. 3.4.3 (2008-07-25) ------------------ - Fix memory leak in all functional tests. - see: https://bugs.launchpad.net/zope3/+bug/251273 + see: https://bugs.launchpad.net/zope3/+bug/251273 3.4.2 (2008-02-02) ------------------ - Fix of 599 error on conflict error in request - see: http://mail.zope.org/pipermail/zope-dev/2008-January/030844.html + see: http://mail.zope.org/pipermail/zope-dev/2008-January/030844.html 3.4.1 (2007-10-31) ------------------ diff -Nru zope.app.testing-3.9.0/src/zope.app.testing.egg-info/requires.txt zope.app.testing-3.10.0/src/zope.app.testing.egg-info/requires.txt --- zope.app.testing-3.9.0/src/zope.app.testing.egg-info/requires.txt 2011-03-14 09:12:39.000000000 +0000 +++ zope.app.testing-3.10.0/src/zope.app.testing.egg-info/requires.txt 2012-01-13 23:19:39.000000000 +0000 @@ -1,11 +1,11 @@ setuptools zope.annotation -zope.app.appsetup >=3.11.0 +zope.app.appsetup >= 3.11 zope.processlifetime zope.app.debug zope.app.dependable zope.app.publication -zope.component +zope.component >= 3.8 zope.container zope.i18n zope.interface @@ -15,12 +15,11 @@ zope.security zope.site zope.testing -zope.testbrowser >= 4.0.0dev +zope.testbrowser >= 4 zope.traversing [test] ZODB3 -zope.app.authentication zope.app.zcmlfiles zope.login zope.publisher >= 3.12