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_GACrossover.py   biopython(Download)
 
        self.test_crossover.type = "same"
        new_org_1, new_org_2 = crossover.do_crossover(self.org_1, self.org_2)
 
        self.assertEqual(str(new_org_1), str(self.org_1),
 
        self.test_crossover.type = "lower"
        new_org_1, new_org_2 = crossover.do_crossover(self.org_1, self.org_2)
 
        self.assertEqual(str(new_org_1), str(self.org_1),
 
        self.test_crossover.type = "higher"
        new_org_1, new_org_2 = crossover.do_crossover(self.org_1, self.org_2)
 
        self.assertTrue(new_org_1.fitness > self.org_1.fitness and
 
        self.test_crossover.type = "same"
        new_org_1, new_org_2 = crossover.do_crossover(self.org_1, self.org_2)
 
        self.assertEqual(str(new_org_1), str(self.org_1),
 
        self.test_crossover.type = "lower"
        new_org_1, new_org_2 = crossover.do_crossover(self.org_1, self.org_2)
 
        self.assertNotEqual(str(new_org_1), str(self.org_1),

src/b/i/biopython-HEAD/Tests/test_GACrossover.py   biopython(Download)
 
        self.test_crossover.type = "same"
        new_org_1, new_org_2 = crossover.do_crossover(self.org_1, self.org_2)
 
        self.assertEqual(str(new_org_1), str(self.org_1),
 
        self.test_crossover.type = "lower"
        new_org_1, new_org_2 = crossover.do_crossover(self.org_1, self.org_2)
 
        self.assertEqual(str(new_org_1), str(self.org_1),
 
        self.test_crossover.type = "higher"
        new_org_1, new_org_2 = crossover.do_crossover(self.org_1, self.org_2)
 
        self.assertTrue(new_org_1.fitness > self.org_1.fitness and
 
        self.test_crossover.type = "same"
        new_org_1, new_org_2 = crossover.do_crossover(self.org_1, self.org_2)
 
        self.assertEqual(str(new_org_1), str(self.org_1),
 
        self.test_crossover.type = "lower"
        new_org_1, new_org_2 = crossover.do_crossover(self.org_1, self.org_2)
 
        self.assertNotEqual(str(new_org_1), str(self.org_1),