Beispiel #1
0
 def test_host_is_up(self):
     with requests_mock.mock() as mock:
         mock.head(client.get_host())
         self.assertTrue(client.host_is_up())
Beispiel #2
0
 def test_host_is_up(self):
     with requests_mock.mock() as mock:
         mock.head(raw.get_host())
         self.assertTrue(raw.host_is_up())
     self.assertFalse(raw.host_is_up())