Merge "Initialize delete_object mock *before* creating all the threads"

This commit is contained in:
Jenkins 2016-03-18 10:43:08 +00:00 committed by Gerrit Code Review
commit 39e017d807

@ -778,6 +778,7 @@ class TestShell(unittest.TestCase):
connection.return_value.attempts = 0
argv = ["", "delete", "--all"]
connection.return_value.head_object.return_value = {}
connection.return_value.delete_object.return_value = None
swiftclient.shell.main(argv)
connection.return_value.delete_object.assert_has_calls([
mock.call('container', 'object', query_string=None,