From ddd7a6d849bffc9968bbe4fc53b9895915c7d2dd Mon Sep 17 00:00:00 2001 From: Michael Egorov Date: Tue, 5 Sep 2017 16:41:54 -0700 Subject: [PATCH] Need to be able to store dicts --- tests/test_db.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_db.py b/tests/test_db.py index 1b83cdc1e..795021b15 100644 --- a/tests/test_db.py +++ b/tests/test_db.py @@ -21,3 +21,10 @@ def test_db(): db.close() assert db.path == db2.path + + +def test_store_dict(): + db = DB() + db[b'x'] = {'a': 1, 'b': 2} + assert db[b'x']['a'] == 1 + db.close()