[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests -
testTransaction.py:1.12.20.2
Chris McDonough
chrism at zope.com
Sun Oct 5 10:36:40 EDT 2003
Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv27613/lib/python/ZODB/tests
Modified Files:
Tag: Zope-2_7-branch
testTransaction.py
Log Message:
Add a test for Transaction.note.
=== Zope/lib/python/ZODB/tests/testTransaction.py 1.12.20.1 => 1.12.20.2 ===
--- Zope/lib/python/ZODB/tests/testTransaction.py:1.12.20.1 Mon Sep 15 17:26:57 2003
+++ Zope/lib/python/ZODB/tests/testTransaction.py Sun Oct 5 10:36:39 2003
@@ -86,6 +86,17 @@
assert self.sub2._p_jar.cabort == 1
+ def testTransactionNote(self):
+
+ t = get_transaction()
+
+ t.note('This is a note.')
+ self.assertEqual(t.description, 'This is a note.')
+ t.note('Another.')
+ self.assertEqual(t.description, 'This is a note.\n\nAnother.')
+
+ t.abort()
+
def testSubTransactionCommitCommit(self):
self.sub1.modify()
More information about the Zodb-checkins
mailing list