Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Better error message #3

Merged
merged 1 commit into from

3 participants

@zacc

Put status code into error message, easier to understand.

@bebef1987
Collaborator

Lgtm

@stephendonner

Awesome; thanks!

@stephendonner stephendonner merged commit bb0a9a4 into mozilla:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 9, 2012
  1. Better error message

    Zac authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/test_snippets.py
View
2  tests/test_snippets.py
@@ -35,7 +35,7 @@ def test_snippets_present(self, mozwebqa, path):
full_url = mozwebqa.base_url + path
r = self._get_redirect(full_url)
- Assert.equal(r.status_code, requests.codes.ok)
+ Assert.equal(r.status_code, requests.codes.ok, "URL %s failed with status code: %s" %(full_url, r.status_code))
soup = self._parse_response(r.content)
snippets = soup.select("div.snippet")
Something went wrong with that request. Please try again.