Peach :: Generators :: data :: StringVariance :: Class StringVariance
[hide private]

Class StringVariance

source code


Generate a range of string sizes from len(str) - variance to len(str) + variance.

Instance Methods [hide private]
 
__init__(self, group, string, variance, min=None, max=None)
Min and max can be used to limit the produced numbers.
source code
 
getRawValue(self) source code
 
next(self) source code
 
reset(self) source code
Method Details [hide private]

__init__(self, group, string, variance, min=None, max=None)
(Constructor)

source code 

Min and max can be used to limit the produced numbers.

Parameters:
  • group (Group) - Group to use
  • string (String or Generator) - String to vary length of
  • min (Minimum allowed length) - Number
  • max (Maximum allowed length) - Number
  • variance (+ and - change to give length range)