Esempio n. 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)
Esempio n. 2
0
 def test_send_http_request_get(self):
     request = HttpRequest('http://localhost')
     response = request.send()
     self.assertEqual(response.status, 200)
     self.assertTrue(response.body)
Esempio n. 3
0
 def test_send_http_request_options(self):
     request = HttpRequest('http://localhost', method='OPTIONS')
     response = request.send()
     self.assertEqual(response.status, 200)
Esempio n. 4
0
 def test_send_http_request_options(self):
     request = HttpRequest('http://localhost', method='OPTIONS')
     response = request.send()
     self.assertEqual(response.status, 200)