def test_google(self): rc = encoder.reverse('http://www.google.com/') self.assertEquals(rc, 'com.google.www')
def test_long_url(self): rc = encoder.reverse('http://www.google.com/analytics/') self.assertEquals(rc, 'com.google.www')