Exemple #1
0
 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_get(self):
     request = HttpRequest('http://localhost')
     response = request.send()
     self.assertEqual(response.status, 200)
     self.assertTrue(response.body)
Exemple #3
0
 def test_send_http_request_options(self):
     request = HttpRequest('http://localhost', method='OPTIONS')
     response = request.send()
     self.assertEqual(response.status, 200)
 def test_send_http_request_options(self):
     request = HttpRequest('http://localhost', method='OPTIONS')
     response = request.send()
     self.assertEqual(response.status, 200)