def integer_list_item_checker(x):
    i = positive_integer(x)
    if (i in allowed_values):
        return x
    raise ValueError(('Integer must be one of following: %s' % ', '.join((str(j) for j in allowed_values))))
def integer_list_item_checker(x):
    i = positive_integer(x)
    if (i in allowed_values):
        return x
    raise ValueError(('Integer must be one of following: %s' % ', '.join((str(j) for j in allowed_values))))