[CMF-checkins] CVS: CMF - test_Event.py:1.3
tseaver@digicool.com
tseaver@digicool.com
Tue, 19 Jun 2001 15:00:34 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCalendar/tests
In directory korak.digicool.com:/tmp/cvs-serv17724/CMFCalendar/tests
Modified Files:
test_Event.py
Log Message:
- Testing hygeine (make sure we run in isolated ZODB transactions).
--- Updated File test_Event.py in package CMF --
--- test_Event.py 2001/06/08 15:22:41 1.2
+++ test_Event.py 2001/06/19 19:00:03 1.3
@@ -5,6 +5,13 @@
from DateTime import DateTime
class TestEvent(unittest.TestCase):
+
+ def setUp( self ):
+ get_transaction().begin()
+
+ def tearDown( self ):
+ get_transaction().abort()
+
def test_new(self):
event = Event('test')
assert event.getId() == 'test'