def test_less_than():
    assert hug.types.less_than(10)('1') == 1
    assert hug.types.less_than(10)(1) == 1
    assert hug.types.less_than(10)(-10) == -10
    assert '10' in hug.types.less_than(10).__doc__
    with pytest.raises(ValueError):
        assert hug.types.less_than(10)(10)
Tests that hug's less than type successfully limits the values passed in
dataset/ETHPy150Open timothycrosley/hug/tests/test_types.py/test_less_than