Slightly improve wsme.root coverage
This commit is contained in:
15
wsme/tests/test_root.py
Normal file
15
wsme/tests/test_root.py
Normal 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()
|
||||
Reference in New Issue
Block a user