3 ms·
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 unitte
by kisielk 14y ago
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.
- RegEx 14y agoAh, I see, thanks!