Esempio n. 1
0
 def test_fetch__do_not_crash_3(self):
     self.assertEqual(fetch('badhost'), None)
Esempio n. 2
0
 def test_fetch__domain_name_only(self):
     self.assertEqual(fetch('myhost.com'),
             (['http://myhost.com', 'http://www.myhost.com/'], 'content!'))
Esempio n. 3
0
 def test_fetch__do_not_crash_2(self):
     self.assertEqual(fetch('myhost.com/unexpected_failure204'), None)
Esempio n. 4
0
 def test_fetch__std_url(self):
     self.assertEqual(fetch('http://myhost.com'),
             (['http://myhost.com', 'http://www.myhost.com/'], 'content!'))