Merge "func tests: Allow test_etag_quoter to be run multiple times"

This commit is contained in:
Zuul 2020-04-23 01:28:49 +00:00 committed by Gerrit Code Review
commit 4c49009378
1 changed files with 9 additions and 5 deletions

View File

@ -1766,11 +1766,15 @@ class TestObject(unittest.TestCase):
do_head()
post_container('t')
do_head(expect_quoted=True)
post_account('t')
post_container('')
do_head(expect_quoted=True)
post_container('f')
do_head()
try:
post_account('t')
post_container('')
do_head(expect_quoted=True)
post_container('f')
do_head()
finally:
# Don't leave a dirty account
post_account('')
if __name__ == '__main__':