def testGetEmptyRestaurantCategoriesListWhenNoRestaurantFound(self):
     restautantsEmptyFile = getAbsolutePath("examples/restaurantsEmpty.json")
     restaurantCategories = self.productDataExtractor.getRestaurantCategories(restautantsEmptyFile)
     self.assertListEqual(restaurantCategories, [])
Exemple #2
0
 def testGetEmptyRestaurantCategoriesListWhenNoRestaurantFound(self):
     restautantsEmptyFile = getAbsolutePath(
         "examples/restaurantsEmpty.json")
     restaurantCategories = self.productDataExtractor.getRestaurantCategories(
         restautantsEmptyFile)
     self.assertListEqual(restaurantCategories, [])
 def setUp(self):
     response = fakeResponseFromFile("examples/ProductExample.json", None)
     self.productDataExtractor = ProductDataExtractor.ProductDataExtractor(response)
     self.restaurantsFile = getAbsolutePath("examples/restaurants.json")
Exemple #4
0
 def setUp(self):
     response = fakeResponseFromFile("examples/ProductExample.json", None)
     self.productDataExtractor = ProductDataExtractor.ProductDataExtractor(
         response)
     self.restaurantsFile = getAbsolutePath("examples/restaurants.json")