def test_has_at_least_one_key():
 schema = vol.Schema(cv.has_at_least_one_key('beer', 'soda'))
 for value in (None, [], {}, {'wine': None}):
  with pytest.raises(vol.MultipleInvalid):
   schema(value)
 for value in ({'beer': None}, {'soda': None}):
  schema(value)

def test_has_at_least_one_key ( ) : schema = vol . Schema ( cv . has_at_least_one_key ( 'beer' , 'soda' ) ) for value in ( None , [ ] , { } , { 'wine' : None } ) : with pytest . raises ( vol . MultipleInvalid ) : schema ( value ) for value in ( { 'beer' : None } , { 'soda' : None } ) : schema ( value )
test has_at_least_one_key validator .