def test_designation_constraint(sample_data1):

    event_type1 = sample_data1.query(EventType).get(1)

    with pytest.raises(exc.ValidationError):
        Fate.create(
            sample_data1, event_type1, description="Wrong fate",
            for_creator=False, for_owner=False, follows_id=2
        )
Handle the update received event.
dataset/ETHPy150Open dropbox/hermes/tests/model_tests/test_fates.py/test_designation_constraint--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/isy994.py/ISYDeviceABC.on_update