def test_multiple_url(self): text = """ http://www.fsf.org and http://www.april.org """ result = _get_urls(text) valid = ['http://www.fsf.org', 'http://www.april.org'] self.assertEqual(result, valid)
def test_url_with_parenthesis(self): text = """ (http://www.fsf.org) """ result = _get_urls(text) valid = ['http://www.fsf.org'] self.assertEqual(result, valid)
def test_simple_url(self): text = """ http://www.fsf.org """ result = _get_urls(text) valid = ['http://www.fsf.org'] self.assertEqual(result, valid)