1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-10-05 23:16:56 +00:00
keyosk/tests/test_database_account_acl.py

13 lines
286 B
Python
Raw Normal View History

import json
import peewee
from fixtures import demo_database
from keyosk import database
def test_formatting(demo_database):
for acl in database.AccountACLEntry.select():
assert dict(acl) == json.loads(json.dumps(dict(acl)))
assert str(acl.uuid) not in str(acl)