Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #16 from m8ttyB/improve_error_msg

buffing up one of the assertion msgs
  • Loading branch information...
commit ac576efcfe71f8f9601c8d9d179a5dcd9e71e71b 2 parents 87396d9 + 651e141
@stephendonner stephendonner authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/test_redirects.py
View
6 tests/test_redirects.py
@@ -91,7 +91,11 @@ def test_redirect_for_firefox_aliases(self, testsetup, product_alias):
product_alias['product_name'] == 'firefox-latest-euballot' and
"download.allizom.org" in testsetup.base_url
):
- Assert.equal(response.status_code, requests.codes.ok, 'Failed on %s \nUsing %s' % (url, param))
+ Assert.equal(response.status_code, requests.codes.ok,
+ 'Redirect failed with HTTP status %s on %s \n \
+ For %s\n \
+ Redirected to %s' % \
+ (response.status_code, url, param, response.url))
Assert.equal(parsed_url.scheme, 'http', 'Failed on %s \nUsing %s' % (url, param))
Assert.equal(parsed_url.netloc, 'download.cdn.mozilla.net', 'Failed on %s \nUsing %s' % (url, param))
if (
Please sign in to comment.
Something went wrong with that request. Please try again.