def _is_positive_int(length):
    if not isinstance(length, int) or length <= 0:
        raise ValueError("{0} is an invalid 'length'.".format(length))
Check that ``length`` argument is an integer greater than zero.
dataset/ETHPy150Open omaciel/fauxfactory/fauxfactory/__init__.py/_is_positive_int