Need to be able to store dicts

pull/24/head^2
Michael Egorov 2017-09-05 16:41:54 -07:00
parent dcfec2d7ab
commit ddd7a6d849
1 changed files with 7 additions and 0 deletions

View File

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