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)
Load player configuration
dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_config_validation.py/test_has_at_least_one_key--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/pyherc/config/config.py/Configuration.get_player_config