[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests -
testTransaction.py:1.14
Chris McDonough
chrism at zope.com
Sun Oct 5 10:34:36 EDT 2003
Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv27288
Modified Files:
testTransaction.py
Log Message:
Add a test for Transaction.note.
=== Zope/lib/python/ZODB/tests/testTransaction.py 1.13 => 1.14 ===
--- Zope/lib/python/ZODB/tests/testTransaction.py:1.13 Thu Oct 2 14:17:17 2003
+++ Zope/lib/python/ZODB/tests/testTransaction.py Sun Oct 5 10:34:35 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