def test_contains_one_of():
 assert hug.validate.contains_one_of('no', 'way')(TEST_SCHEMA)
 assert (not hug.validate.contains_one_of('last', 'place')(TEST_SCHEMA))

def test_contains_one_of ( ) : assert hug . validate . contains_one_of ( 'no' , 'way' ) ( TEST_SCHEMA ) assert ( not hug . validate . contains_one_of ( 'last' , 'place' ) ( TEST_SCHEMA ) )
test to ensure hugs contains_one_of validation function works as expected to ensure presence of a field .