def test_has_at_least_one_key():
    'Test has_at_least_one_key validator.'
    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.
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)