[Zodb-checkins]
SVN: ZODB/branches/anguenot-after_commit_hooks/src/transaction/tests/test_transaction.py
Show it's been executed and reset logs
Julien Anguenot
ja at nuxeo.com
Tue Dec 20 21:21:27 EST 2005
Log message for revision 40937:
Show it's been executed and reset logs
Changed:
U ZODB/branches/anguenot-after_commit_hooks/src/transaction/tests/test_transaction.py
-=-
Modified: ZODB/branches/anguenot-after_commit_hooks/src/transaction/tests/test_transaction.py
===================================================================
--- ZODB/branches/anguenot-after_commit_hooks/src/transaction/tests/test_transaction.py 2005-12-21 02:19:54 UTC (rev 40936)
+++ ZODB/branches/anguenot-after_commit_hooks/src/transaction/tests/test_transaction.py 2005-12-21 02:21:27 UTC (rev 40937)
@@ -895,6 +895,8 @@
>>> log
["True arg '-' kw1 1 kw2 'no_kw2'", "True arg '-' kw1 3 kw2 'no_kw2'"]
+ >>> reset_log()
+
Test that the assiated transaction manager has been cleanup when
after commit hooks are registred
@@ -908,9 +910,14 @@
>>> t.addAfterCommitHook(hook, ('-', 1))
>>> transaction.commit()
+ >>> log
+ ["True arg '-' kw1 1 kw2 'no_kw2'"]
+
>>> len(t._manager._txns)
0
+ >>> reset_log()
+
"""
def test_suite():
More information about the Zodb-checkins
mailing list