I would like to test couple of methods that involves Python requests library. Cases I'd like to cover are:
- server unreachable
- server reachable, but targeted service not available
- call failed
- call succeeded
Now the tricky part is, I need to cover also SSL certificates failure(s):
- valid
- expired
- missing/invalid one certificate in chain
Is this possible with requests-mock or other library?
Many thanks in advance