Пример #1
0
 def test_google(self):
     rc = encoder.reverse('http://www.google.com/')
     self.assertEquals(rc, 'com.google.www')
Пример #2
0
 def test_long_url(self):
     rc = encoder.reverse('http://www.google.com/analytics/')
     self.assertEquals(rc, 'com.google.www')