def test_cyan_200():
test_name = "Check page access "
try:
assert_error = False
response = [requests.get(p).status_code for p in check_pages]
try:
npt.assert_array_equal(response, 200, '200 error', True)
except AssertionError:
assert_error = True
except Exception as e:
# handle any other exception
print("Error '{0}' occured. Arguments {1}.".format(e.message, e.args))
except Exception as e:
# handle any other exception
print("Error '{0}' occured. Arguments {1}.".format(e.message, e.args))
finally:
linkcheck_helper.write_report(test_name, assert_error, check_pages, response)
return
评论列表
文章目录