diff --git a/oscarapi/tests/unit/testproduct.py b/oscarapi/tests/unit/testproduct.py index 9ec1b59d..7a1eaa0a 100644 --- a/oscarapi/tests/unit/testproduct.py +++ b/oscarapi/tests/unit/testproduct.py @@ -237,7 +237,7 @@ def test_product_attributes(self): self.assertEqual(attributes_by_name["datetime"], "2018-01-02T10:45:00Z") self.assertIsInstance(attributes_by_name["file"], str) self.assertEqual( - attributes_by_name["file"], "/media/images/products/2018/01/sony-xa50ES.pdf" + attributes_by_name["file"], "http://testserver/media/images/products/2018/01/sony-xa50ES.pdf" ) self.assertIsInstance(attributes_by_name["float"], float) self.assertEqual(attributes_by_name["float"], 3.2) @@ -247,7 +247,7 @@ def test_product_attributes(self): ) self.assertIsInstance(attributes_by_name["image"], str) self.assertEqual( - attributes_by_name["image"], "/media/images/products/2018/01/IMG_3777.JPG" + attributes_by_name["image"], "http://testserver/media/images/products/2018/01/IMG_3777.JPG" ) self.assertIsInstance(attributes_by_name["integer"], int) self.assertEqual(attributes_by_name["integer"], 7)