From ccded720524289c128051f7507bfc6974f0c1811 Mon Sep 17 00:00:00 2001 From: Bystroushaak Date: Tue, 20 Oct 2015 13:12:35 +0200 Subject: [PATCH] #4, #5: Added more tests. Fixed #6. --- tests/test_db_handler.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_db_handler.py b/tests/test_db_handler.py index dfe09fa..9de102c 100755 --- a/tests/test_db_handler.py +++ b/tests/test_db_handler.py @@ -49,3 +49,13 @@ def test_storing_and_retreiving(): assert first_wrapper["something"] == "hello" assert second_wrapper["something"] == "hello" + + +def test_storing(zeo_wrapper): + with transaction.manager: + zeo_wrapper["something"] = "hello" + + +def test_retreiving(zeo_wrapper): + with transaction.manager: + assert zeo_wrapper["something"] == "hello"