def testStepNumMutations(self):
     min_length = 10
     max_length = 100
     step = 3
     excepted_num_mutations = (max_length - min_length) / step
     field = RandomBytes(value=self.default_value, min_length=min_length, max_length=max_length, step=step)
     self._check_mutation_count(field, excepted_num_mutations)
     field.reset()
     self._check_mutation_count(field, excepted_num_mutations)
 def testNoStepNumMutations(self):
     param_num_mutations = 100
     field = RandomBytes(value=self.default_value,
                         min_length=10,
                         max_length=20,
                         num_mutations=param_num_mutations)
     self._check_mutation_count(field, param_num_mutations)
     field.reset()
     self._check_mutation_count(field, param_num_mutations)
 def testStepNumMutations(self):
     min_length = 10
     max_length = 100
     step = 3
     excepted_num_mutations = (max_length - min_length) / step
     field = RandomBytes(value=self.default_value, min_length=min_length, max_length=max_length, step=step)
     self._check_mutation_count(field, excepted_num_mutations)
     field.reset()
     self._check_mutation_count(field, excepted_num_mutations)
 def testNoStepNumMutations(self):
     param_num_mutations = 100
     field = RandomBytes(value=self.default_value, min_length=10, max_length=20, num_mutations=param_num_mutations)
     self._check_mutation_count(field, param_num_mutations)
     field.reset()
     self._check_mutation_count(field, param_num_mutations)