Use create_response for fake http response in tests
The old FakeHTTPResponse we're using in the tests is really basic and
lacks a lot of the information that is expected in a response from an
adapter. This is a hard problem that we've already solved in the
create_response function so use that to create a test response instead
of a custom solution here.
Reviewed: https:/ /review. openstack. org/399288 /git.openstack. org/cgit/ openstack/ requests- mock/commit/ ?id=81b72f4397c 712c74241a74c0e ffa7da5ddd1f24
Committed: https:/
Submitter: Jenkins
Branch: master
commit 81b72f4397c712c 74241a74c0effa7 da5ddd1f24
Author: Jamie Lennox <email address hidden>
Date: Fri Nov 18 09:59:53 2016 +1100
Use create_response for fake http response in tests
The old FakeHTTPResponse we're using in the tests is really basic and
lacks a lot of the information that is expected in a response from an
adapter. This is a hard problem that we've already solved in the
create_response function so use that to create a test response instead
of a custom solution here.
Change-Id: I2999c9c69b4e9a d895114fab8ae7f 8ce275fa2a4
Closes-Bug: #1642697