def METHOD_NAME(func):
    """Just check we create the expected error message.
    Somewhat contrived.
    """
    ids = NonIterableObject()
    with pytest.raises(ArgumentTypeErr,
                       match="'ids' must be an identifier or list of identifiers"):
        func(ids)