From f85ec8f5b2941dfedaf56d4b4b4a67f5051c23e1 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Thu, 19 Apr 2012 13:49:11 +0200 Subject: [PATCH] Slightly improve wsme.root coverage --- wsme/tests/test_root.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 wsme/tests/test_root.py diff --git a/wsme/tests/test_root.py b/wsme/tests/test_root.py new file mode 100644 index 0000000..9c3e8b4 --- /dev/null +++ b/wsme/tests/test_root.py @@ -0,0 +1,15 @@ +# encoding=utf8 + +import unittest + +from wsme import WSRoot + + +class TestRoot(unittest.TestCase): + def test_default_transaction(self): + import transaction + root = WSRoot(transaction=True) + assert root._transaction is transaction + + txn = root.begin() + txn.abort()