1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-11-05 06:07:06 +00:00
keyosk/tests/test_serializers_account.py

14 lines
396 B
Python
Raw Normal View History

# pylint: disable=unused-argument,redefined-outer-name,unused-import
from fixtures import demo_database
from keyosk import database
from keyosk import serializers
def test_compatibility(demo_database):
serializer = serializers.AccountSerializer()
for domain in database.KeyoskAccount.select():
dumped = serializer.dump(domain)
assert domain == serializer.load(dumped)