107
107
importer = CatalogImageImporter(env)
108
108
with mock.patch('urllib2.urlopen') as urlopen:
109
109
def image_url_response(url):
110
111
if url == 'http://localhost:9100/media/catalog/product/i/n/ink-eater-krylon-bombear-destroyed-tee-2.jpg':
111
112
raise urllib2.HTTPError(url, 404, '404', None, None)
112
113
elif url == 'http://localhost:9100/media/catalog/product/i/n/ink-eater-krylon-bombear-destroyed-tee-1.jpg':