Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Make the assertion failure msg more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Brandt committed Oct 12, 2012
1 parent ac576ef commit 8eb3384
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_redirects.py
Expand Up @@ -49,7 +49,11 @@ def test_that_checks_redirect_using_locales_and_os(self, testsetup, lang, os):

parsed_url = urlparse(response.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))

@pytest.mark.xfail(reason='there currently is not a stub installer -- xfailing until one lands in the wild')
Expand Down

0 comments on commit 8eb3384

Please sign in to comment.