Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

buffing up one of the assertion msgs

  • Loading branch information...
commit 651e141e91eefe521a48e1093947e3db34e3e728 1 parent 87396d9
Matt Brandt m8ttyB authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/test_redirects.py
6 tests/test_redirects.py
View
@@ -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.