requests-mock/requests_mock
voith 890a4fe9ff Fix exception message when creating a response
When you register a handler the type for text or data can be a string or
a callback that provides a string. By the time you get to
create_response this callback should have been called and only a string
can be passed.

This check originally would have been in place for when a callback was
run and the return value was not the expected type, however
create_response is a public function that can be used on its own.

Correct the exception to clarify in create_response you must pass a
string or bytes and not a callback.

Change-Id: I3e700afddc1f40454f69a564066495bfc77d91c8
Closes-Bug: #1627506
2016-09-26 10:27:35 +10:00
..
2015-11-18 12:00:09 +11:00
2015-11-18 12:00:06 +11:00
2016-08-26 11:54:50 +10:00