Commit 1cfb12a9 authored by Chris McDonough's avatar Chris McDonough

Add a test for Transaction.note.

parent 6ed5ac77
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
""" """
Revision information: Revision information:
$Id: testTransaction.py,v 1.13 2003/10/02 18:17:17 jeremy Exp $ $Id: testTransaction.py,v 1.14 2003/10/05 14:34:35 chrism Exp $
""" """
""" """
...@@ -86,6 +86,17 @@ class TransactionTests(unittest.TestCase): ...@@ -86,6 +86,17 @@ class TransactionTests(unittest.TestCase):
assert self.sub2._p_jar.cabort == 1 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): def testSubTransactionCommitCommit(self):
self.sub1.modify() self.sub1.modify()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment