Permalink
Browse files

Bug 840814 old whatsnew and firstrun redirects with /projects/ in th…

…e middle should not 404
  • Loading branch information...
1 parent cf4ed74 commit 8d4a4be7b3a77fca4c3f0b6680b497d920546eda @retornam retornam committed Mar 7, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/test_redirect.py
View
12 tests/test_redirect.py 100644 → 100755
@@ -132,3 +132,15 @@ def test_all_older_redirect(self, mozwebqa):
url = mozwebqa.base_url + "/firefox/all-older.html"
response = requests.get(url)
Assert.contains("/firefox/new", response.url)
+
+ @pytest.mark.nondestructive
+ def test_old_firstrun_redirect(self, mozwebqa):
+ url = mozwebqa.base_url + "/en-US/projects/firefox/3.6.13/firstrun/"
+ response = requests.get(url)
+ Assert.not_equal(response.status_code, 404)
+
+ @pytest.mark.nondestructive
+ def test_old_whatsnew_redirect(self, mozwebqa):
+ url = mozwebqa.base_url + '/en-US/projects/firefox/3.6.13/whatsnew/'
+ response = requests.get(url)
+ Assert.not_equal(response.status_code, 404)

0 comments on commit 8d4a4be

Please sign in to comment.