[Zope3-checkins] CVS: Zope3/src/zope/testing - functional.py:1.19

Jim Fulton jim at zope.com
Fri Mar 19 07:00:12 EST 2004


Update of /cvs-repository/Zope3/src/zope/testing
In directory cvs.zope.org:/tmp/cvs-serv3304/src/zope/testing

Modified Files:
	functional.py 
Log Message:
Added convenience commit and abort methods.


=== Zope3/src/zope/testing/functional.py 1.18 => 1.19 ===
--- Zope3/src/zope/testing/functional.py:1.18	Mon Feb 23 05:20:23 2004
+++ Zope3/src/zope/testing/functional.py	Fri Mar 19 07:00:11 2004
@@ -148,6 +148,11 @@
         """Returns the Zope root folder."""
         return FunctionalTestSetup().getRootFolder()
 
+    def commit(self):
+        get_transaction().commit()
+
+    def abort(self):
+        get_transaction().abort()
 
 class BrowserTestCase(FunctionalTestCase):
     """Functional test case for Browser requests."""




More information about the Zope3-Checkins mailing list