def test_marshmallow_schema():
    class UserSchema(Schema):
        name = fields.Str()

    schema_type = hug.types.MarshmallowSchema(UserSchema())
    assert schema_type({"name": "test"}) == {"name": "test"}
    assert schema_type("""{"name": "test"}""") == {"name": "test"}
    assert schema_type.__doc__ == 'UserSchema'
    with pytest.raises(InvalidTypeData):
        schema_type({"name": 1})
Test ``entry_detail`` view with an offline entry.
dataset/ETHPy150Open timothycrosley/hug/tests/test_types.py/test_marshmallow_schema--crossover with--dataset/ETHPy150Open ionyse/ionyweb/ionyweb/page_app/page_blog/tests.py/BlogTest.test_entry_detail_not_found