Ejemplo n.º 1
0
 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/')
Ejemplo n.º 2
0
 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/")
Ejemplo n.º 3
0
 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/'
Ejemplo n.º 4
0
 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/')
Ejemplo n.º 5
0
 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/"
Ejemplo n.º 6
0
 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/')