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_pop_intermed_blank(self):
     with self.assertRaises(ValueError):
         apply_selection(1, 1, 1, None)
Exemple #3
0
 def test_apply_selection_hour_limit_blank(self):
     with self.assertRaises(ValueError):
         apply_selection(1, 0, 1, cand_pop)
Exemple #4
0
 def test_apply_selection_milk_limit_neg(self):
     with self.assertRaises(ValueError):
         apply_selection(1, 1, -1, cand_pop)
Exemple #5
0
 def test_apply_selection_pop_qt_neg(self):
     with self.assertRaises(ValueError):
         apply_selection(-1, 1, 1, cand_pop)