Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_get_adapted_session(self, mock_session):
adapter = mock.Mock()
adapted_session = client.get_adapted_session(adapter)
assert adapter == adapted_session.get_adapter("http://foo.com")
assert adapter == adapted_session.get_adapter("https://foo.com")