def test_uuid_serialize_non_base64_data(data): t = types.URLSafeUUID() with pytest.raises(types.InvalidUUID): t.process_bind_param(data, dialect)
def test_uuid_deserialize(app, db): t = types.URLSafeUUID() assert t.process_result_value(db, dialect) == app
def test_uuid_serialize(app, db): t = types.URLSafeUUID() assert t.process_bind_param(app, dialect) == db