def test_event_schema():
    for value in (
        {}, None,
        {
            'event_data': {},
        },
        {
            'event': 'state_changed',
            'event_data': 1,
        },
    ):
        with pytest.raises(vol.MultipleInvalid):
            cv.EVENT_SCHEMA(value)

    for value in (
        {'event': 'state_changed'},
        {'event': 'state_changed', 'event_data': {'hello': 'world'}},
    ):
        cv.EVENT_SCHEMA(value)
Assign the given name to the node and make sure the
dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_config_validation.py/test_event_schema--crossover with--dataset/ETHPy150Open thasso/pyjip/jip/pipelines.py/Pipeline._apply_node_name