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" )