Show More
@@ -95,7 +95,7 b' def assert_http_error(status, msg=None):' | |||||
95 | except requests.HTTPError as e: |
|
95 | except requests.HTTPError as e: | |
96 | real_status = e.response.status_code |
|
96 | real_status = e.response.status_code | |
97 | assert real_status == status, \ |
|
97 | assert real_status == status, \ | |
98 |
"Expected status %d, got %d" % ( |
|
98 | "Expected status %d, got %d" % (status, real_status) | |
99 | if msg: |
|
99 | if msg: | |
100 | assert msg in str(e), e |
|
100 | assert msg in str(e), e | |
101 | else: |
|
101 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now