We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ed0a39 commit 05ec7e7Copy full SHA for 05ec7e7
test_qiniu.py
@@ -301,9 +301,9 @@ class DownloadTestCase(unittest.TestCase):
301
q = Auth(access_key, secret_key)
302
303
def test_private_url(self):
304
- bucket = 'test_private_bucket'
305
- key = 'test_private_key'
306
- base_url = 'http://%s/%s' % (bucket, key)
+ private_bucket = 'private-res'
+ private_key = 'gogopher.jpg'
+ base_url = 'http://%s/%s' % (private_bucket+'.qiniudn.com', private_key)
307
private_url = self.q.private_download_url(base_url, expires=3600)
308
print(private_url)
309
r = requests.get(private_url)
0 commit comments