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)

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 hugs less than type successfully limits the values passed in .