Added connection validation code in the _get_connection method in amazon_transcribe/httpsession.py, instead of blindly returning a connection if it exists in self._connections
Improved the tests fixtures to allow mocking multiple instances of the HTTP Connection class.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: #76
Description of changes:
Added connection validation code in the
_get_connection
method inamazon_transcribe/httpsession.py
, instead of blindly returning a connection if it exists inself._connections
Improved the tests fixtures to allow mocking multiple instances of the HTTP Connection class.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.