def test_long_url_not_protocol(self): site = get_site("www.anarey.info/holamundo/dkef/ed") self.assertEqual(site, "www.anarey.info")
def test_long_url(self): site = get_site("http://www.anarey.info/aaaa") self.assertEqual(site, "www.anarey.info")
def test_not_protocol(self): site = get_site("www.google.com") self.assertEqual(site, "www.google.com")
def test_site_twitter(self): site = get_site("http://www.twitter.com") self.assertEqual(site, "www.twitter.com")
def test_site_google(self): site = get_site("http://www.google.com") self.assertEqual(site, "www.google.com")
def test_not_site(self): site = get_site("http://www.site2.com") self.assertNotEqual(site, "www.site.com")