Merge "More verbose WrongStatusException"

This commit is contained in:
Jenkins 2015-02-18 12:22:39 +00:00 committed by Gerrit Code Review
commit 74752ec2c8

View File

@ -36,5 +36,6 @@ class Requests(base.Scenario):
"""
resp = requests.head(url)
if response and response != resp.status_code:
error = "Expected Response and Actual Response not equal"
error = "Expected HTTP request code is `%s` actual `%s`" % (
response, resp.status_code)
raise WrongStatusException(error)