def test_any():
 assert (not hug.validate.any(hug.validate.contains_one_of('last', 'year'), hug.validate.contains_one_of('first', 'place'))(TEST_SCHEMA))
 assert hug.validate.any(hug.validate.contains_one_of('last', 'year'), hug.validate.contains_one_of('no', 'way'))(TEST_SCHEMA)

def test_any ( ) : assert ( not hug . validate . any ( hug . validate . contains_one_of ( 'last' , 'year' ) , hug . validate . contains_one_of ( 'first' , 'place' ) ) ( TEST_SCHEMA ) ) assert hug . validate . any ( hug . validate . contains_one_of ( 'last' , 'year' ) , hug . validate . contains_one_of ( 'no' , 'way' ) ) ( TEST_SCHEMA )
test to ensure hugs any validation function works as expected to combine validators .