Skip to content
Browse files

fixing test to add response headers and response.url

  • Loading branch information...
1 parent 5c8bf16 commit 69f159f2700c8949a7fcb6fd865bd920a8dee260 @retornam retornam committed Apr 10, 2013
Showing with 3 additions and 7 deletions.
  1. +3 −7 tests/test_redirects.py
View
10 tests/test_redirects.py 100644 → 100755
@@ -128,16 +128,12 @@ def test_redirect_for_firefox_aliases(self, testsetup, product_alias):
'\n %s' % self.response_info(response))
def test_redirect_for_windows_200_to_2001(self, testsetup):
-
url = testsetup.base_url
param = {
- 'product' : 'firefox-20.0',
+ 'product': 'firefox-20.0',
'os': 'win',
- 'lang' : 'en-US',
+ 'lang': 'en-US',
}
-
response = self._head_request(url, params=param)
-
parsed_url = urlparse(response.url)
-
- Assert.true('20.0.1' in parsed_url.query, 'Redirect failed using params of %s' % (parsed_url.query))
+ Assert.contains('20.0.1', response.url, '\n %s' % self.response_info(response))

0 comments on commit 69f159f

Please sign in to comment.
Something went wrong with that request. Please try again.