def test_greater_than():
 assert (hug.types.greater_than(10)('11') == 11)
 assert (hug.types.greater_than(10)(11) == 11)
 assert (hug.types.greater_than(10)(1000) == 1000)
 assert ('10' in hug.types.greater_than(10).__doc__)
 with pytest.raises(ValueError):
  assert hug.types.greater_than(10)(9)

def test_greater_than ( ) : assert ( hug . types . greater_than ( 10 ) ( '11' ) == 11 ) assert ( hug . types . greater_than ( 10 ) ( 11 ) == 11 ) assert ( hug . types . greater_than ( 10 ) ( 1000 ) == 1000 ) assert ( '10' in hug . types . greater_than ( 10 ) . __doc__ ) with pytest . raises ( ValueError ) : assert hug . types . greater_than ( 10 ) ( 9 )
tests that hugs greater than type succefully limis the values passed in .