def test_typic_schema(obj, expected):
    assert typic.schema(obj) == expected
def test_typic_schema_primitive(obj, expected):
    assert typic.schema(obj, primitive=True) == expected
def test_typic_objects_schema(obj):
    if hasattr(obj, "resolve"):
        obj.resolve()
    assert obj.schema() is typic.schema(obj)