Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/b/i/biopython-1.63/Tests/test_GAMutation.py   biopython(Download)
 
        self.test_mutator.type = "same"
        new_org = mutator.mutate(self.org)
        assert (new_org == self.org), \
               "Did not retain organism for same fitness."
 
        self.test_mutator.type = "lower"
        new_org = mutator.mutate(self.org)
 
        self.test_mutator.type = "higher"
        new_org = mutator.mutate(self.org)
        assert (new_org.fitness > self.org.fitness), \
                "Did not get new organism when it had higher fitness."
 
        self.test_mutator.type = "same"
        new_org = mutator.mutate(self.org)
        assert (new_org == self.org), \
               "Did not retain organism for same fitness."
 
        self.test_mutator.type = "lower"
        new_org = mutator.mutate(self.org)

src/b/i/biopython-HEAD/Tests/test_GAMutation.py   biopython(Download)
 
        self.test_mutator.type = "same"
        new_org = mutator.mutate(self.org)
        assert (new_org == self.org), \
               "Did not retain organism for same fitness."
 
        self.test_mutator.type = "lower"
        new_org = mutator.mutate(self.org)
 
        self.test_mutator.type = "higher"
        new_org = mutator.mutate(self.org)
        assert (new_org.fitness > self.org.fitness), \
                "Did not get new organism when it had higher fitness."
 
        self.test_mutator.type = "same"
        new_org = mutator.mutate(self.org)
        assert (new_org == self.org), \
               "Did not retain organism for same fitness."
 
        self.test_mutator.type = "lower"
        new_org = mutator.mutate(self.org)