def test_valid_url(self):
     self.assertTrue(ipfromwebpage.validate_url('http://www.example.com'))
 def test_custom_tld(self):
     self.assertTrue(ipfromwebpage.validate_url('http://www.example.anything'))
 def test_malformed_url(self):
     self.assertFalse(ipfromwebpage.validate_url('http://example'))
 def test_not_http_protocol(self):
     self.assertFalse(ipfromwebpage.validate_url('ftp://www.example.com'))
 def test_malformed_url(self):
     self.assertFalse(ipfromwebpage.validate_url('http://example'))
 def test_custom_tld(self):
     self.assertTrue(
         ipfromwebpage.validate_url('http://www.example.anything'))
 def test_not_http_protocol(self):
     self.assertFalse(ipfromwebpage.validate_url('ftp://www.example.com'))
 def test_valid_url(self):
     self.assertTrue(ipfromwebpage.validate_url('http://www.example.com'))