def test_check_url(self): eq_(views.check_url('Firefox for Android', '42.0'), 'https://support.mozilla.org/kb/will-firefox-work-my-mobile-device') eq_(views.check_url('Firefox for iOS', '1.4'), '/en-US/firefox/ios/1.4/system-requirements/') eq_(views.check_url('Firefox', '42.0'), '/en-US/firefox/42.0/system-requirements/')
def test_check_url(self): eq_( views.check_url("Firefox for Android", "42.0"), "https://support.mozilla.org/kb/will-firefox-work-my-mobile-device", ) eq_(views.check_url("Firefox for iOS", "1.1"), "/en-US/firefox/ios/1.1/system-requirements/") eq_(views.check_url("Firefox", "42.0"), "/en-US/firefox/42.0/system-requirements/")
def test_check_url(self): with self.activate('en-US'): assert views.check_url('Firefox for Android', '45.0') == \ 'https://support.mozilla.org/kb/will-firefox-work-my-mobile-device' assert views.check_url('Firefox for Android', '46.0') == \ '/en-US/firefox/android/46.0/system-requirements/' assert views.check_url('Firefox for iOS', '1.4') == \ '/en-US/firefox/ios/1.4/system-requirements/' assert views.check_url('Firefox', '42.0') == \ '/en-US/firefox/42.0/system-requirements/'
def test_check_url(self): eq_( views.check_url('Firefox for Android', '45.0'), 'https://support.mozilla.org/kb/will-firefox-work-my-mobile-device' ) eq_(views.check_url('Firefox for Android', '46.0'), '/en-US/firefox/android/46.0/system-requirements/') eq_(views.check_url('Firefox for iOS', '1.4'), '/en-US/firefox/ios/1.4/system-requirements/') eq_(views.check_url('Firefox', '42.0'), '/en-US/firefox/42.0/system-requirements/')
def test_check_url(self): with self.activate("en-US"): assert views.check_url( "Firefox for Android", "45.0" ) == "https://support.mozilla.org/kb/will-firefox-work-my-mobile-device" assert views.check_url( "Firefox for Android", "46.0") == "/en-US/firefox/android/46.0/system-requirements/" assert views.check_url( "Firefox for iOS", "1.4") == "/en-US/firefox/ios/1.4/system-requirements/" assert views.check_url( "Firefox", "42.0") == "/en-US/firefox/42.0/system-requirements/"
def test_check_url(self): with self.activate('en-US'): assert ( views.check_url('Firefox for Android', '45.0') == 'https://support.mozilla.org/kb/will-firefox-work-my-mobile-device') assert ( views.check_url('Firefox for Android', '46.0') == '/en-US/firefox/android/46.0/system-requirements/') assert ( views.check_url('Firefox for iOS', '1.4') == '/en-US/firefox/ios/1.4/system-requirements/') assert ( views.check_url('Firefox', '42.0') == '/en-US/firefox/42.0/system-requirements/')