コード例 #1
0
ファイル: test_utils.py プロジェクト: zongfangfang/HttpRunner
 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"
     )
コード例 #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"
     )