提交 5d2f0674 编写于 作者: K Konstantin Lopuhin

S3FeedStorageTest: delete key after test

上级 19b2910a
......@@ -102,8 +102,10 @@ class S3FeedStorageTest(unittest.TestCase):
file.write("content")
yield storage.store(file)
u = urlparse(uri)
key = connect_s3().get_bucket(u.hostname, validate=False).get_key(u.path)
bucket = connect_s3().get_bucket(u.hostname, validate=False)
key = bucket.get_key(u.path)
self.assertEqual(key.get_contents_as_string(), "content")
bucket.delete_key(u.path)
class StdoutFeedStorageTest(unittest.TestCase):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册