Ejemplo n.º 1
0
 def test_apply_selection_ok(self):
     result = apply_selection(1, 1, 1, cand_pop)
     self.assertNotEqual(result, "ok")
Ejemplo n.º 2
0
 def test_apply_selection_pop_intermed_blank(self):
     with self.assertRaises(ValueError):
         apply_selection(1, 1, 1, None)
Ejemplo n.º 3
0
 def test_apply_selection_hour_limit_blank(self):
     with self.assertRaises(ValueError):
         apply_selection(1, 0, 1, cand_pop)
Ejemplo n.º 4
0
 def test_apply_selection_milk_limit_neg(self):
     with self.assertRaises(ValueError):
         apply_selection(1, 1, -1, cand_pop)
Ejemplo n.º 5
0
 def test_apply_selection_pop_qt_neg(self):
     with self.assertRaises(ValueError):
         apply_selection(-1, 1, 1, cand_pop)