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