示例#1
0
 def test_removeUrl2(self):
   sentence = "this is an URL http://t.co/icErcNfSCf"
   goldenSentence = "this is an URL "
   self.assertEqual(removeUrl(sentence), goldenSentence)
示例#2
0
 def test_removeUrl(self):
   sentence = "this is an URL http://google.ie http://google.cl http://google.com"
   goldenSentence = "this is an URL   "
   self.assertEqual(removeUrl(sentence), goldenSentence)