Merge "v3 test utils, don't modify input parameter"

This commit is contained in:
Jenkins
2014-01-07 13:36:03 +00:00
committed by Gerrit Code Review

View File

@@ -195,7 +195,7 @@ class CrudTests(object):
# signature for the request when the manager does some # signature for the request when the manager does some
# conversion before doing the request (e.g converting # conversion before doing the request (e.g converting
# from datetime object to timestamp string) # from datetime object to timestamp string)
req_ref = req_ref or ref.copy() req_ref = (req_ref or ref).copy()
req_ref.pop('id') req_ref.pop('id')
self.stub_entity(httpretty.POST, entity=req_ref, status=201) self.stub_entity(httpretty.POST, entity=req_ref, status=201)