Example #1
0
 def test_apply_selection_ok(self):
     result = apply_selection(1, 1, cand_pop)
     self.assertNotEqual(result, "ok")
Example #2
0
 def test_apply_selection_weight_limit_neg(self):
     with self.assertRaises(ValueError):
         apply_selection(1, -1, cand_pop)
Example #3
0
 def test_apply_selection_pop_intermed_blank(self):
     with self.assertRaises(ValueError):
         apply_selection(1, 1, None)
Example #4
0
 def test_apply_selection_pop_qt_neg(self):
     with self.assertRaises(ValueError):
         apply_selection(-1, 1, cand_pop)