mdrachuk / serious

Dataclass Model Toolkit
https://serious.readthedocs.io
MIT License
7 stars 1 forks source link

Symmetric assert test utility #10

Closed mdrachuk closed 5 years ago

mdrachuk commented 5 years ago

Symmetric assert is useful to test that the Schema will behave predictably:

user_json = schema.dump(user)
assert schema.load(user_json) == user