Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Bug 840814 #167

Merged
merged 1 commit into from
Mar 8, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/test_redirect.py
100644 → 100755
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -132,3 +132,15 @@ def test_all_older_redirect(self, mozwebqa):
url = mozwebqa.base_url + "/firefox/all-older.html" url = mozwebqa.base_url + "/firefox/all-older.html"
response = requests.get(url) response = requests.get(url)
Assert.contains("/firefox/new", response.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)