def test__get_download_url_with_media_link(self):
    blob_name = 'something.txt'
    bucket = mock.Mock(spec=[])
    blob = self._make_one(blob_name, bucket=bucket)
    media_link = 'http://test.invalid'
    blob._properties['mediaLink'] = media_link
    download_url = blob._get_download_url()
    self.assertEqual(download_url, media_link)
def test__get_download_url_with_media_link(self):
    blob_name = 'something.txt'
    bucket = mock.Mock(spec=[])
    blob = self._make_one(blob_name, bucket=bucket)
    media_link = 'http://test.invalid'
    blob._properties['mediaLink'] = media_link
    download_url = blob._get_download_url()
    self.assertEqual(download_url, media_link)