Example #1
0
 def test_valid_equal_ping_responses(self):
     response = "20 packets transmitted, 19 received, 5% packet loss, time 19008ms"
     self.assertTrue(utils.valid_ping_response(response, max_loss=5))
Example #2
0
 def test_valid_equal_ping_responses(self):
     response = "20 packets transmitted, 19 received, 5% packet loss, time 19008ms"
     self.assertTrue(utils.valid_ping_response(response, max_loss=5))
Example #3
0
 def test_invalid_ping_responses(self):
     response = "20 packets transmitted, 19 received, 5% packet loss, time 19008ms"
     self.assertFalse(utils.valid_ping_response(response, max_loss=0))
Example #4
0
 def test_invalid_ping_responses(self):
     response = "20 packets transmitted, 19 received, 5% packet loss, time 19008ms"
     self.assertFalse(utils.valid_ping_response(response, max_loss=0))