def test_mutate(self): gene = FloatGene(value=10.3, min_value=0, max_value=100) gene.mutate()
def test_random_value(self): gene = FloatGene(value=1, min_value=0, max_value=100) val = gene.random_value() assert val >= gene.min_value and val <= gene.max_value