def METHOD_NAME(self):
    assert_raises_with_msg(
        DataError,
        f"Creating '{__name__}.Example' object from dictionary failed: "
        f"'{__name__}.Example' object does not have attribute 'nonex'",
        Example.from_dict, {'nonex': 'attr'}
    )