def testGetEmptyRestaurantCategoriesListWhenNoRestaurantFound(self): restautantsEmptyFile = getAbsolutePath("examples/restaurantsEmpty.json") restaurantCategories = self.productDataExtractor.getRestaurantCategories(restautantsEmptyFile) self.assertListEqual(restaurantCategories, [])
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")
def setUp(self): response = fakeResponseFromFile("examples/ProductExample.json", None) self.productDataExtractor = ProductDataExtractor.ProductDataExtractor( response) self.restaurantsFile = getAbsolutePath("examples/restaurants.json")