Closed sigmavirus24 closed 8 years ago
Provided something like the following
import requests import betamax session = requests.Session() recorder = betamax.Betamax(session) with recorder.use_cassette('example'): response = session.get('https://httpbin.org/get') assert response.reason == 'OK' assert response.status_code == 200 raw = response.raw assert raw.status == 200 assert raw.reason == 'OK'
The last line will fail because raw.reason is None. It should be the same value as was recorded.
raw.reason
None
@ceaess
Provided something like the following
The last line will fail because
raw.reason
isNone
. It should be the same value as was recorded.