mozilla/mcom-tests — pull request #118 by trumans (2012-09-30 22:57:20+00:00)
Title: Check languages links

For issue #98

The test checks all 250+ download links on the page and generates a collective message for all links that fail the 302 check. My decision to *not* to parameterize is based on:
a) checking a single link is a very very short task relative to overall test setup & execution,
b) the large number of links checked,
c) if there were massive number of failures it might more helpful if they were gathered in one test failure instead generating a massive number of failures.

When links fail the 302 the assertion error will look something like:
Expected status code 302. Lang 'ar' Windows link: status 200. Lang 'ar' OSX link: status 200. Lang 'ar' Linux link: status 200.

The test includes disabled code to demonstrate getting links for an single language. Tests don't normally include commented code that, but I wasn't sure how best to "document" the method without writing another test.