Mocket v3.9.2 Release Notes
Release Date: 2020-10-11 // over 3 years ago-
🤡 https://github.com/mindflayer/python-mocket#example-of-how-to-fake-a-socket-errors
@mocketizedef test\_raise\_exception(self): url = "http://github.com/fluidicon.png"Entry.single\_register(Entry.GET, url, exception=socket.error()) with self.assertRaises(requests.exceptions.ConnectionError): requests.get(url)