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)
Dummy function used in the code to find out if a default was set.
dataset/ETHPy150Open timothycrosley/hug/tests/test_types.py/test_less_than--crossover with--dataset/ETHPy150Open facebook/gnlpy/netlink.py/_unset