예제 #1
0
 def test_addonurl(self):
     eq_(helpers.addon_url('addons.detail', self.addon),
         '/en-US/firefox/addon/addon/')
     eq_(helpers.addon_url('apps.detail', self.addon),
         '/en-US/firefox/addon/addon/')
예제 #2
0
 def test_appurl(self):
     eq_(helpers.addon_url('addons.detail', self.webapp),
         '/en-US/apps/app/webapp/')
     eq_(helpers.addon_url('apps.detail', self.webapp),
         '/en-US/apps/app/webapp/')