[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests -
testTransaction.py:1.11.6.3
Chris McDonough
chrism at zope.com
Sun Oct 5 10:39:45 EDT 2003
Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv28099
Modified Files:
Tag: Zope-2_6-branch
testTransaction.py
Log Message:
Add a test for Transaction.note.
=== Zope/lib/python/ZODB/tests/testTransaction.py 1.11.6.2 => 1.11.6.3 ===
--- Zope/lib/python/ZODB/tests/testTransaction.py:1.11.6.2 Thu Jan 30 18:25:19 2003
+++ Zope/lib/python/ZODB/tests/testTransaction.py Sun Oct 5 10:39:44 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