def test_apply_selection_ok(self): result = apply_selection(1, 1, 1, cand_pop) self.assertNotEqual(result, "ok")
def test_apply_selection_pop_intermed_blank(self): with self.assertRaises(ValueError): apply_selection(1, 1, 1, None)
def test_apply_selection_hour_limit_blank(self): with self.assertRaises(ValueError): apply_selection(1, 0, 1, cand_pop)
def test_apply_selection_milk_limit_neg(self): with self.assertRaises(ValueError): apply_selection(1, 1, -1, cand_pop)
def test_apply_selection_pop_qt_neg(self): with self.assertRaises(ValueError): apply_selection(-1, 1, 1, cand_pop)