Ejemplo n.º 1
0
 def test_create_initial_population_ok(self):
     result = create_initial_population(1, 1, 1, prod_list_full)
     self.assertNotEqual(result, "ok")
Ejemplo n.º 2
0
 def test_create_initial_population_hour_limit_neg(self):
     with self.assertRaises(ValueError):
         create_initial_population(1, 1, -1, prod_list_full)
Ejemplo n.º 3
0
 def test_create_initial_population_prod_list_blank(self):
     with self.assertRaises(ValueError):
         create_initial_population(1, 1, 1, None)
Ejemplo n.º 4
0
 def test_create_initial_population_milk_limit_blank(self):
     with self.assertRaises(ValueError):
         create_initial_population(1, 0, 1, prod_list_full)