mirror of
https://github.com/enpaul/keyosk.git
synced 2024-11-05 14:17:08 +00:00
14 lines
396 B
Python
14 lines
396 B
Python
|
# 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)
|