def sendImageWithURL(self, url):
        path = '%s/pythonLine.data' % tempfile.gettempdir()

        r = requests.get(url, stream=True)
        if r.status_code == 200:
            with open(path, 'w') as f:
                shutil.copyfileobj(r.raw, f)
        else:
            raise Exception('Download image failure.')

        try:
            self.sendImage(path)
        except Exception as e:
            raise e
Testing the PUT review-requests/<id>/draft/ API
dataset/ETHPy150Open carpedm20/LINE/line/models.py/LineBase.sendImageWithURL--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_review_request_draft.py/ResourceTests.test_put_with_no_changes