Exemple #1
0
 def test_apply_selection_ok(self):
     result = apply_selection(1, 1, 1, cand_pop)
     self.assertNotEqual(result, "ok")
Exemple #2
0
 def test_apply_selection_milk_limit_blank(self):
     with self.assertRaises(ValueError):
         apply_selection(1, 1, 0, cand_pop)
Exemple #3
0
 def test_apply_selection_pop_intermed_blank(self):
     with self.assertRaises(ValueError):
         apply_selection(1, 1, 1, None)
Exemple #4
0
 def test_apply_selection_pop_qt_blank(self):
     with self.assertRaises(ValueError):
         apply_selection(0, 1, 1, cand_pop)