Exemplo n.º 1
0
 def test_search_ok(self):
     with self.assertRaises(ValueError):
         search(1, 1, 1, 1, prod_list_full)
Exemplo n.º 2
0
 def test_search_ok2(self):
     with self.assertRaises(ValueError):
         search(2, 40, 50, 5000, prod_list_full)
Exemplo n.º 3
0
 def test_search_resources_blank(self):
     with self.assertRaises(ValueError):
         search(1, 1, 1, 1, None)
Exemplo n.º 4
0
 def test_search_milk_limit_neg(self):
     with self.assertRaises(ValueError):
         search(1, 1, 1, -1, "file_name.csv")
Exemplo n.º 5
0
 def test_search_milk_tolerance_blank(self):
     with self.assertRaises(ValueError):
         search(1, 1, 0, 1, "file_name.csv")
Exemplo n.º 6
0
 def test_search_hour_limit_blank(self):
     with self.assertRaises(ValueError):
         search(1, 0, 1, 1, "file_name.csv")
Exemplo n.º 7
0
 def test_search_hour_tolerance_neg(self):
     with self.assertRaises(ValueError):
         search(-1, 1, 1, 1, "file_name.csv")