Slightly improve wsme.root coverage

This commit is contained in:
Christophe de Vienne
2012-04-19 13:49:11 +02:00
parent 188d015e63
commit f85ec8f5b2

15
wsme/tests/test_root.py Normal file
View File

@@ -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()