Ejemplo n.º 1
0
 def test_remove_prefix(self):
     full_url = "http://debugtalk.com/post/123"
     prefix = "http://debugtalk.com"
     self.assertEqual(
         utils.remove_prefix(full_url, prefix),
         "/post/123"
     )
Ejemplo n.º 2
0
 def test_remove_prefix(self):
     full_url = "http://debugtalk.com/post/123"
     prefix = "http://debugtalk.com"
     self.assertEqual(
         utils.remove_prefix(full_url, prefix),
         "/post/123"
     )