def test_send_http_request_get(self): request = HttpRequest('http://localhost') response = request.send() self.assertEqual(response.status, 200) self.assertTrue(response.body)
def test_send_http_request_options(self): request = HttpRequest('http://localhost', method='OPTIONS') response = request.send() self.assertEqual(response.status, 200)