News for hackers. Stuff that matters.
Re:HTTPretty 0.5.8 – mock HTTP requests in Python at the soc... by kisielk on Thursday February 14, 2013 @07:03PM (#5223511)
You don't have to do that. It's just the test framework they are using alongside HTTPretty in their examples.

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)
That is what I do in my tests.
Re:HTTPretty 0.5.8 – mock HTTP requests in Python at the soc... by RegEx on Thursday February 14, 2013 @09:08PM (#5224007)
Ah, I see, thanks!