Ejemplo n.º 1
0
 def test_unicode_path(self):
     parts = [
         'deadcafe',
         'L2VuLVVTL2ZpcmVmb3gvYWRkb24vZMSZbMOuY8Otw7jDuXMtcMOkw7HEjcOla8SZL'
         'z9zcmM9aHAtZGwtZmVhdHVyZWQ',
     ]
     next_path = views.parse_next_path(parts)
     assert next_path == (
         u'/en-US/firefox/addon/dęlîcíøùs-päñčåkę/?src=hp-dl-featured')
Ejemplo n.º 2
0
 def test_unicode_path(self):
     parts = [
         'deadcafe',
         'L2VuLVVTL2ZpcmVmb3gvYWRkb24vZMSZbMOuY8Otw7jDuXMtcMOkw7HEjcOla8SZL'
         'z9zcmM9aHAtZGwtZmVhdHVyZWQ',
     ]
     next_path = views.parse_next_path(parts)
     assert next_path == (
         u'/en-US/firefox/addon/dęlîcíøùs-päñčåkę/?src=hp-dl-featured')
Ejemplo n.º 3
0
 def test_plain_path(self):
     parts = ['deadcafe', 'L2VuLVVTL2FkZG9ucy9teS1hZGRvbi8']
     next_path = views.parse_next_path(parts)
     assert next_path == '/en-US/addons/my-addon/'
Ejemplo n.º 4
0
 def test_plain_path(self):
     parts = ['deadcafe', 'L2VuLVVTL2FkZG9ucy9teS1hZGRvbi8']
     next_path = views.parse_next_path(parts)
     assert next_path == '/en-US/addons/my-addon/'