def test__get_download_url_on_the_fly(self):
    blob_name = 'bzzz-fly.txt'
    bucket = mock.Mock(path='/b/buhkit', spec=['path'])
    blob = self._make_one(blob_name, bucket=bucket)
    self.assertIsNone(blob.media_link)
    download_url = blob._get_download_url()
    expected_url = 'https://www.googleapis.com/download/storage/v1/b/buhkit/o/bzzz-fly.txt?alt=media'
    self.assertEqual(download_url, expected_url)
def test__get_download_url_on_the_fly(self):
    blob_name = 'bzzz-fly.txt'
    bucket = mock.Mock(path='/b/buhkit', spec=['path'])
    blob = self._make_one(blob_name, bucket=bucket)
    self.assertIsNone(blob.media_link)
    download_url = blob._get_download_url()
    expected_url = 'https://www.googleapis.com/download/storage/v1/b/buhkit/o/bzzz-fly.txt?alt=media'
    self.assertEqual(download_url, expected_url)