Permalink
Browse files

Merge pull request #22 from AlinT/xfail_813968

Xfail due to new found bug 813968 - alias returns 404
  • Loading branch information...
2 parents 8385bfd + 39eb793 commit b5c9fd63e3c97c9a153739ee7ed06e21a344edc9 @bebef1987 bebef1987 committed Nov 21, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 tests/test_redirects.py
View
@@ -28,11 +28,11 @@ def test_that_checks_redirect_using_incorrect_query_values(self, testsetup):
Assert.equal(response.status_code, requests.codes.not_found, 'Failed on %s \nUsing %s' % (url, param))
parsed_url = urlparse(response.url)
- Assert.equal(parsed_url.scheme, 'http',
+ Assert.equal(parsed_url.scheme, 'http',
'Failed by redirected to HTTPS on %s \n \
Using %s \n \
Redirect to %s' % \
- (url, param, response.url))
+ (url, param, response.url))
Assert.equal(parsed_url.netloc, urlparse(url).netloc, 'Failed on %s \nUsing %s' % (url, param))
Assert.equal(parsed_url.query, urlencode(param), 'Failed on %s \nUsing %s' % (url, param))
@@ -54,7 +54,7 @@ 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,
+ Assert.equal(response.status_code, requests.codes.ok,
'Redirect failed with HTTP status %s on %s \n \
For %s\n \
Redirected to %s' % \
@@ -84,6 +84,10 @@ def test_stub_installer_redirect_for_en_us_and_win(self, testsetup):
{'product_name': 'firefox-latest', 'lang': 'en-US'},
])
def test_redirect_for_firefox_aliases(self, testsetup, product_alias):
+
+ if product_alias == {'product_name': 'firefox-latest', 'lang': 'en-US'}:
+ pytest.xfail(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=813968 - Alias returns 404')
+
url = testsetup.base_url
param = {
'product': product_alias['product_name'],

0 comments on commit b5c9fd6

Please sign in to comment.