def test_service():
    schema = vol.Schema(cv.service)

    with pytest.raises(vol.MultipleInvalid):
        schema('invalid_turn_on')

    schema('homeassistant.turn_on')
Make sure the control is ready to edit.
dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_config_validation.py/test_service--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/grid/trait_grid_cell_adapter.py/TraitGridCellAdapter.BeginEdit