@validator
def length(value, min=None, max=None):
    if (min is not None and min < 0) or (max is not None and max < 0):
        raise AssertionError(
            '`min` and `max` need to be greater than zero.'
        )
    return between(len(value), min=min, max=max)
Splits a test suite into groups with different running properties.
dataset/ETHPy150Open SickRage/SickRage/lib/validators/length.py/length--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/commands/test.py/SplitParallelizableTestSuite