@override_settings(DEV=True)
@patch.dict(product_details.firefox_versions, LATEST_FIREFOX_VERSION='16.0')
def test_whatsnew_search_tour_oldversion(self):
    'Should not show tour if upgrading from 34.0 onwards.'
    self.url = reverse('firefox.whatsnew', args=['34.1'])
    response = self.client.get((self.url + '?oldversion=28.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=27.0.1'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=4.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=rv:10.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=33.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=33.0.1'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=34.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertNotIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=34.0.1'), HTTP_USER_AGENT=self.user_agent)
    self.assertNotIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=34.1'), HTTP_USER_AGENT=self.user_agent)
    self.assertNotIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=35.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertNotIn(self.expected, response.content)
    response = self.client.get(self.url, HTTP_USER_AGENT=self.user_agent)
    self.assertNotIn(self.expected, response.content)
Should not show tour if upgrading from 34.0 onwards.
@override_settings(DEV=True)
@patch.dict(product_details.firefox_versions, LATEST_FIREFOX_VERSION='16.0')
def test_whatsnew_search_tour_oldversion(self):
    
    self.url = reverse('firefox.whatsnew', args=['34.1'])
    response = self.client.get((self.url + '?oldversion=28.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=27.0.1'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=4.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=rv:10.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=33.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=33.0.1'), HTTP_USER_AGENT=self.user_agent)
    self.assertIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=34.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertNotIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=34.0.1'), HTTP_USER_AGENT=self.user_agent)
    self.assertNotIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=34.1'), HTTP_USER_AGENT=self.user_agent)
    self.assertNotIn(self.expected, response.content)
    response = self.client.get((self.url + '?oldversion=35.0'), HTTP_USER_AGENT=self.user_agent)
    self.assertNotIn(self.expected, response.content)
    response = self.client.get(self.url, HTTP_USER_AGENT=self.user_agent)
    self.assertNotIn(self.expected, response.content)