requests-mock/requests_mock
Jamie Lennox 95dffefe83 Allow for nested mocking
The double mocking solution we have now of mocking send and get_adapter
is a bit unusual. One of the problems is that if you have a nested mock
situation then send calling the last send means get_adapter is remocked
again and the outer adapter ends up being the last installed.

To avoid this always go to the real original send function to bypass any
outer installed mockers and make sure our get_adapter function is
triggered.

Change-Id: I47bff5e7da98e5238bd926e22845a7ca34f21940
Closes-Bug: #1642690
2016-11-18 16:10:54 +11:00
..
2016-11-18 16:10:54 +11:00
2015-11-18 12:00:09 +11:00
2015-11-18 12:00:06 +11:00
2016-11-18 16:10:54 +11:00