Пример #1
0
 def test_apply_mutation_ok(self):
     result = apply_mutation(1, cand_pop, obj_list_full)
     self.assertNotEqual(result, "ok")
Пример #2
0
 def test_apply_mutation_cand_to_repro_blank(self):
     with self.assertRaises(ValueError):
         apply_mutation(1, None, obj_list_full)
Пример #3
0
 def test_apply_mutation_prod_list_blank(self):
     with self.assertRaises(ValueError):
         apply_mutation(1, cand_pop, None)
Пример #4
0
 def test_apply_mutation_wished_qt_blank(self):
     with self.assertRaises(ValueError):
         apply_mutation(0, cand_pop, obj_list_full)