Skip to content

Commit

Permalink
modify ut
Browse files Browse the repository at this point in the history
  • Loading branch information
dt3310321 committed Aug 1, 2018
1 parent 6afc154 commit 9c2b742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion qcloud_cos/cos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ def get_bucket_website(self, Bucket, **kwargs):
config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key, Token=token) # 获取配置对象
client = CosS3Client(config)
# 获取bucket跨区域复制配置
# 获取bucket静态网站配置
response = client.get_bucket_website(
Bucket='bucket'
)
Expand Down
4 changes: 2 additions & 2 deletions ut/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@ def test_put_get_delete_website():
response = client.get_bucket_website(
Bucket=test_bucket
)
assert cmp(website_config, response) == 0
# delete replication
assert website_config == response
# delete website
response = client.delete_bucket_website(
Bucket=test_bucket
)
Expand Down

0 comments on commit 9c2b742

Please sign in to comment.