def test_search_ok(self): with self.assertRaises(ValueError): search(1, 1, 1, 1, prod_list_full)
def test_search_ok2(self): with self.assertRaises(ValueError): search(2, 40, 50, 5000, prod_list_full)
def test_search_resources_blank(self): with self.assertRaises(ValueError): search(1, 1, 1, 1, None)
def test_search_milk_limit_neg(self): with self.assertRaises(ValueError): search(1, 1, 1, -1, "file_name.csv")
def test_search_milk_tolerance_blank(self): with self.assertRaises(ValueError): search(1, 1, 0, 1, "file_name.csv")
def test_search_hour_limit_blank(self): with self.assertRaises(ValueError): search(1, 0, 1, 1, "file_name.csv")
def test_search_hour_tolerance_neg(self): with self.assertRaises(ValueError): search(-1, 1, 1, 1, "file_name.csv")