Merge "More verbose WrongStatusException"
This commit is contained in:
commit
74752ec2c8
@ -36,5 +36,6 @@ class Requests(base.Scenario):
|
|||||||
"""
|
"""
|
||||||
resp = requests.head(url)
|
resp = requests.head(url)
|
||||||
if response and response != resp.status_code:
|
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)
|
raise WrongStatusException(error)
|
||||||
|
Loading…
Reference in New Issue
Block a user