Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on HTTPretty 0.5.8 – mock HTTP requests in Python at the socket level. Parent comment
You can just as easily use the traditional unittest.TestCase methods:
self.assertEqual(HTTPretty.last_request.querystring, "whatever") self.assertEqual(HTTPretty.last_request.method, HTTPretty.GET)
You can just as easily use the traditional unittest.TestCase methods:
That is what I do in my tests.