Exemple #1
0
 def test_site_notwww_notprotocol(self):
     site = get_site("twitter.com")
     self.assertEqual(site, "twitter.com")
Exemple #2
0
 def test_long_url_not_protocol(self):
     site = get_site("www.anarey.info/holamundo/dkef/ed")
     self.assertEqual(site, "www.anarey.info")
Exemple #3
0
 def test_site_notwww(self):
     site = get_site("http://github.org")
     self.assertEqual(site, "github.org")
Exemple #4
0
 def test_not_protocol(self):
     site = get_site("www.google.com")
     self.assertEqual(site, "www.google.com")
Exemple #5
0
 def test_long_url(self):
     site = get_site("http://www.anarey.info/aaaa")
     self.assertEqual(site, "www.anarey.info")
Exemple #6
0
 def test_site_google(self):
     site = get_site("http://www.google.com")
     self.assertEqual(site, "www.google.com")
Exemple #7
0
 def test_site_twitter(self):
     site = get_site("http://www.twitter.com")
     self.assertEqual(site, "www.twitter.com")
Exemple #8
0
 def test_site_notwww_notprotocol(self):
     site = get_site("twitter.com")
     self.assertEqual(site, "twitter.com")
Exemple #9
0
 def test_not_site(self):
     site = get_site("http://www.site2.com")
     self.assertNotEqual(site, "www.site.com")
Exemple #10
0
 def test_long_url_not_protocol(self):
     site = get_site("www.anarey.info/holamundo/dkef/ed")
     self.assertEqual(site, "www.anarey.info")
Exemple #11
0
 def test_site_notwww(self):
     site = get_site("http://github.org")
     self.assertEqual(site, "github.org")
Exemple #12
0
 def test_long_url(self):
     site = get_site("http://www.anarey.info/aaaa")
     self.assertEqual(site, "www.anarey.info")
Exemple #13
0
 def test_not_protocol(self):
     site = get_site("www.google.com")
     self.assertEqual(site, "www.google.com")
Exemple #14
0
 def test_site_twitter(self):
     site = get_site("http://www.twitter.com")
     self.assertEqual(site, "www.twitter.com")
Exemple #15
0
 def test_site_google(self):
     site = get_site("http://www.google.com")
     self.assertEqual(site, "www.google.com")
Exemple #16
0
 def test_not_site(self):
     site = get_site("http://www.site2.com")
     self.assertNotEqual(site, "www.site.com")