def METHOD_NAME(good_structure, deformity):
    """Make specific checks upon performing single invalidating deformations
    of the data of a good structure.
    """
    import re
    if deformity is None:
        StructureResource(**good_structure)
        return
    deformity, message = deformity
    good_structure["attributes"].update(deformity)
    with pytest.raises(ValidationError, match=rf".*{re.escape(message)}.*"):
        StructureResource(**good_structure)