コード例 #1
0
ファイル: test_client.py プロジェクト: sdy8181/locust
 def test_head(self):
     s = HttpSession("http://127.0.0.1:%i" % self.port)
     r = s.head("/request_method")
     self.assertEqual(200, r.status_code)
     self.assertEqual("", r.content.decode())
コード例 #2
0
ファイル: test_client.py プロジェクト: alexandrul/locust
 def test_head(self):
     s = HttpSession("http://127.0.0.1:%i" % self.port)
     r = s.head("/request_method")
     self.assertEqual(200, r.status_code)
     self.assertEqual("", r.content.decode())