def test_product_image(self): product = Product(os.getenv('GSX_SN', '123456789')) product.description = 'MacBook Air (13-inch min 2013)' img = product.fetch_image( 'https://static.servoapp.com/images/products/macbook-air-13-inchmid-2013.jpg' ) self.assertTrue(os.path.exists(img))
def test_product_image(self): product = Product(os.getenv('GSX_SN', '123456789')) product.description = 'MacBook Air (13-inch min 2013)' img = product.fetch_image('https://static.servoapp.com/images/products/macbook-air-13-inchmid-2013.jpg') self.assertTrue(os.path.exists(img))