def test_removeUrl2(self): sentence = "this is an URL http://t.co/icErcNfSCf" goldenSentence = "this is an URL " self.assertEqual(removeUrl(sentence), goldenSentence)
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)