fix unittest for Python 2.7/3.4/3.5

This commit is contained in:
debugtalk
2018-12-22 23:26:50 +08:00
parent 4090755826
commit de53da5962

View File

@@ -312,9 +312,9 @@ class TestHttpRunner(ApiServerUnittest):
req_resp_data = summary["details"][0]["records"][0]["meta_datas"]["data"]
self.assertEqual(len(req_resp_data), 2)
self.assertEqual(
req_resp_data[0]["request"]["url"],
"https://httpbin.org/redirect-to?url=https%3A%2F%2Fdebugtalk.com&status_code=302"
self.assertIn(
"url=https%3A%2F%2Fdebugtalk.com",
req_resp_data[0]["request"]["url"]
)
def test_run_testcase_hardcode(self):