Example #1
0
 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)
Example #2
0
 def test_url_with_parenthesis(self):
     text = """
     (http://www.fsf.org)
     """
     result = _get_urls(text)
     valid = ['http://www.fsf.org']
     self.assertEqual(result, valid)
Example #3
0
 def test_simple_url(self):
     text = """
     http://www.fsf.org
     """
     result = _get_urls(text)
     valid = ['http://www.fsf.org']
     self.assertEqual(result, valid)