Example #1
0
 def test_long_url_not_protocol(self):
     site = get_site("www.anarey.info/holamundo/dkef/ed")
     self.assertEqual(site, "www.anarey.info")
Example #2
0
 def test_long_url(self):
     site = get_site("http://www.anarey.info/aaaa")
     self.assertEqual(site, "www.anarey.info")
Example #3
0
 def test_not_protocol(self):
     site = get_site("www.google.com")
     self.assertEqual(site, "www.google.com")
Example #4
0
 def test_site_twitter(self):
     site = get_site("http://www.twitter.com")
     self.assertEqual(site, "www.twitter.com")
Example #5
0
 def test_site_google(self):
     site = get_site("http://www.google.com")
     self.assertEqual(site, "www.google.com")
Example #6
0
 def test_not_site(self):
     site = get_site("http://www.site2.com")
     self.assertNotEqual(site, "www.site.com")