diff --git a/tests/fixtures/osx-10.14.6/ping-hostname-p.json b/tests/fixtures/osx-10.14.6/ping-hostname-p.json new file mode 100644 index 00000000..339cd958 --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping-hostname-p.json @@ -0,0 +1 @@ +{"destination_ip": "151.101.1.67", "data_bytes": 56, "pattern": "0xff", "destination": "cnn.com", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 89.422, "round_trip_ms_avg": 118.033, "round_trip_ms_max": 147.964, "round_trip_ms_stddev": 23.918, "responses": [{"type": "reply", "bytes": 64, "response_ip": "151.101.1.67", "icmp_seq": 0, "ttl": 59, "time_ms": 89.422}, {"type": "reply", "bytes": 64, "response_ip": "151.101.1.67", "icmp_seq": 1, "ttl": 59, "time_ms": 116.712}, {"type": "reply", "bytes": 64, "response_ip": "151.101.1.67", "icmp_seq": 2, "ttl": 59, "time_ms": 147.964}]} diff --git a/tests/fixtures/osx-10.14.6/ping-hostname-s.json b/tests/fixtures/osx-10.14.6/ping-hostname-s.json new file mode 100644 index 00000000..ea60e894 --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping-hostname-s.json @@ -0,0 +1 @@ +{"destination_ip": "151.101.1.67", "data_bytes": 1400, "pattern": null, "destination": "cnn.com", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 29.954, "round_trip_ms_avg": 39.892, "round_trip_ms_max": 50.674, "round_trip_ms_stddev": 8.48, "responses": [{"type": "reply", "bytes": 1408, "response_ip": "151.101.1.67", "icmp_seq": 0, "ttl": 59, "time_ms": 39.048}, {"type": "reply", "bytes": 1408, "response_ip": "151.101.1.67", "icmp_seq": 1, "ttl": 59, "time_ms": 29.954}, {"type": "reply", "bytes": 1408, "response_ip": "151.101.1.67", "icmp_seq": 2, "ttl": 59, "time_ms": 50.674}]} diff --git a/tests/fixtures/osx-10.14.6/ping-hostname.json b/tests/fixtures/osx-10.14.6/ping-hostname.json new file mode 100644 index 00000000..d0be6a4e --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping-hostname.json @@ -0,0 +1 @@ +{"destination_ip": "151.101.1.67", "data_bytes": 56, "pattern": null, "destination": "cnn.com", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 28.042, "round_trip_ms_avg": 34.67, "round_trip_ms_max": 41.182, "round_trip_ms_stddev": 5.365, "responses": [{"type": "reply", "bytes": 64, "response_ip": "151.101.1.67", "icmp_seq": 0, "ttl": 59, "time_ms": 28.042}, {"type": "reply", "bytes": 64, "response_ip": "151.101.1.67", "icmp_seq": 1, "ttl": 59, "time_ms": 34.786}, {"type": "reply", "bytes": 64, "response_ip": "151.101.1.67", "icmp_seq": 2, "ttl": 59, "time_ms": 41.182}]} diff --git a/tests/fixtures/osx-10.14.6/ping-ip-p.json b/tests/fixtures/osx-10.14.6/ping-ip-p.json new file mode 100644 index 00000000..6510c853 --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping-ip-p.json @@ -0,0 +1 @@ +{"destination_ip": "127.0.0.1", "data_bytes": 56, "pattern": "0xff", "destination": "127.0.0.1", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 0.05, "round_trip_ms_avg": 0.078, "round_trip_ms_max": 0.104, "round_trip_ms_stddev": 0.022, "responses": [{"type": "reply", "bytes": 64, "response_ip": "127.0.0.1", "icmp_seq": 0, "ttl": 64, "time_ms": 0.05}, {"type": "reply", "bytes": 64, "response_ip": "127.0.0.1", "icmp_seq": 1, "ttl": 64, "time_ms": 0.104}, {"type": "reply", "bytes": 64, "response_ip": "127.0.0.1", "icmp_seq": 2, "ttl": 64, "time_ms": 0.079}]} diff --git a/tests/fixtures/osx-10.14.6/ping-ip-s.json b/tests/fixtures/osx-10.14.6/ping-ip-s.json new file mode 100644 index 00000000..2334c21a --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping-ip-s.json @@ -0,0 +1 @@ +{"destination_ip": "127.0.0.1", "data_bytes": 1400, "pattern": null, "destination": "127.0.0.1", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 0.053, "round_trip_ms_avg": 0.083, "round_trip_ms_max": 0.108, "round_trip_ms_stddev": 0.023, "responses": [{"type": "reply", "bytes": 1408, "response_ip": "127.0.0.1", "icmp_seq": 0, "ttl": 64, "time_ms": 0.053}, {"type": "reply", "bytes": 1408, "response_ip": "127.0.0.1", "icmp_seq": 1, "ttl": 64, "time_ms": 0.108}, {"type": "reply", "bytes": 1408, "response_ip": "127.0.0.1", "icmp_seq": 2, "ttl": 64, "time_ms": 0.089}]} diff --git a/tests/fixtures/osx-10.14.6/ping-ip.json b/tests/fixtures/osx-10.14.6/ping-ip.json new file mode 100644 index 00000000..baa476ac --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping-ip.json @@ -0,0 +1 @@ +{"destination_ip": "127.0.0.1", "data_bytes": 56, "pattern": null, "destination": "127.0.0.1", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 0.05, "round_trip_ms_avg": 0.066, "round_trip_ms_max": 0.095, "round_trip_ms_stddev": 0.021, "responses": [{"type": "reply", "bytes": 64, "response_ip": "127.0.0.1", "icmp_seq": 0, "ttl": 64, "time_ms": 0.052}, {"type": "reply", "bytes": 64, "response_ip": "127.0.0.1", "icmp_seq": 1, "ttl": 64, "time_ms": 0.095}, {"type": "reply", "bytes": 64, "response_ip": "127.0.0.1", "icmp_seq": 2, "ttl": 64, "time_ms": 0.05}]} diff --git a/tests/fixtures/osx-10.14.6/ping6-hostname-p.json b/tests/fixtures/osx-10.14.6/ping6-hostname-p.json new file mode 100644 index 00000000..e7135a70 --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping6-hostname-p.json @@ -0,0 +1 @@ +{"source_ip": "2600:1700:bab0:d40:2595:8c97:ad16:749a", "destination_ip": "2a04:4e42:200::323", "data_bytes": 56, "pattern": "0xff", "destination": "cnn.com", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 32.992, "round_trip_ms_avg": 34.606, "round_trip_ms_max": 36.07, "round_trip_ms_stddev": 1.261, "responses": [{"type": "reply", "bytes": 16, "response_ip": "2a04:4e42:200::323", "icmp_seq": 0, "ttl": 59, "time_ms": 32.992}, {"type": "reply", "bytes": 16, "response_ip": "2a04:4e42:200::323", "icmp_seq": 1, "ttl": 59, "time_ms": 34.757}, {"type": "reply", "bytes": 16, "response_ip": "2a04:4e42:200::323", "icmp_seq": 2, "ttl": 59, "time_ms": 36.07}]} diff --git a/tests/fixtures/osx-10.14.6/ping6-hostname-s.json b/tests/fixtures/osx-10.14.6/ping6-hostname-s.json new file mode 100644 index 00000000..19bd2313 --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping6-hostname-s.json @@ -0,0 +1 @@ +{"source_ip": "2600:1700:bab0:d40:2595:8c97:ad16:749a", "destination_ip": "2a04:4e42:600::323", "data_bytes": 128, "pattern": null, "destination": "cnn.com", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 25.933, "round_trip_ms_avg": 38.979, "round_trip_ms_max": 64.712, "round_trip_ms_stddev": 18.197, "responses": [{"type": "reply", "bytes": 88, "response_ip": "2a04:4e42:600::323", "icmp_seq": 0, "ttl": 59, "time_ms": 26.292}, {"type": "reply", "bytes": 88, "response_ip": "2a04:4e42:600::323", "icmp_seq": 1, "ttl": 59, "time_ms": 64.712}, {"type": "reply", "bytes": 88, "response_ip": "2a04:4e42:600::323", "icmp_seq": 2, "ttl": 59, "time_ms": 25.933}]} diff --git a/tests/fixtures/osx-10.14.6/ping6-hostname.json b/tests/fixtures/osx-10.14.6/ping6-hostname.json new file mode 100644 index 00000000..f37669f5 --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping6-hostname.json @@ -0,0 +1 @@ +{"source_ip": "2600:1700:bab0:d40:2595:8c97:ad16:749a", "destination_ip": "2a04:4e42:200::323", "data_bytes": 56, "pattern": null, "destination": "cnn.com", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 27.684, "round_trip_ms_avg": 29.836, "round_trip_ms_max": 31.824, "round_trip_ms_stddev": 1.694, "responses": [{"type": "reply", "bytes": 16, "response_ip": "2a04:4e42:200::323", "icmp_seq": 0, "ttl": 59, "time_ms": 27.684}, {"type": "reply", "bytes": 16, "response_ip": "2a04:4e42:200::323", "icmp_seq": 1, "ttl": 59, "time_ms": 31.824}, {"type": "reply", "bytes": 16, "response_ip": "2a04:4e42:200::323", "icmp_seq": 2, "ttl": 59, "time_ms": 30.0}]} diff --git a/tests/fixtures/osx-10.14.6/ping6-ip-p.json b/tests/fixtures/osx-10.14.6/ping6-ip-p.json new file mode 100644 index 00000000..fdc04dca --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping6-ip-p.json @@ -0,0 +1 @@ +{"source_ip": "::1", "destination_ip": "::1", "data_bytes": 56, "pattern": "0xff", "destination": "::1", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 0.077, "round_trip_ms_avg": 0.124, "round_trip_ms_max": 0.156, "round_trip_ms_stddev": 0.034, "responses": [{"type": "reply", "bytes": 16, "response_ip": "::1", "icmp_seq": 0, "ttl": 64, "time_ms": 0.077}, {"type": "reply", "bytes": 16, "response_ip": "::1", "icmp_seq": 1, "ttl": 64, "time_ms": 0.156}, {"type": "reply", "bytes": 16, "response_ip": "::1", "icmp_seq": 2, "ttl": 64, "time_ms": 0.139}]} diff --git a/tests/fixtures/osx-10.14.6/ping6-ip-s.json b/tests/fixtures/osx-10.14.6/ping6-ip-s.json new file mode 100644 index 00000000..4ed7adda --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping6-ip-s.json @@ -0,0 +1 @@ +{"source_ip": "::1", "destination_ip": "::1", "data_bytes": 1448, "pattern": null, "destination": "::1", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 0.093, "round_trip_ms_avg": 0.135, "round_trip_ms_max": 0.161, "round_trip_ms_stddev": 0.03, "responses": [{"type": "reply", "bytes": 1408, "response_ip": "::1", "icmp_seq": 0, "ttl": 64, "time_ms": 0.093}, {"type": "reply", "bytes": 1408, "response_ip": "::1", "icmp_seq": 1, "ttl": 64, "time_ms": 0.161}, {"type": "reply", "bytes": 1408, "response_ip": "::1", "icmp_seq": 2, "ttl": 64, "time_ms": 0.152}]} diff --git a/tests/fixtures/osx-10.14.6/ping6-ip.json b/tests/fixtures/osx-10.14.6/ping6-ip.json new file mode 100644 index 00000000..929fca43 --- /dev/null +++ b/tests/fixtures/osx-10.14.6/ping6-ip.json @@ -0,0 +1 @@ +{"source_ip": "::1", "destination_ip": "::1", "data_bytes": 56, "pattern": null, "destination": "::1", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "round_trip_ms_min": 0.071, "round_trip_ms_avg": 0.115, "round_trip_ms_max": 0.153, "round_trip_ms_stddev": 0.034, "responses": [{"type": "reply", "bytes": 16, "response_ip": "::1", "icmp_seq": 0, "ttl": 64, "time_ms": 0.071}, {"type": "reply", "bytes": 16, "response_ip": "::1", "icmp_seq": 1, "ttl": 64, "time_ms": 0.153}, {"type": "reply", "bytes": 16, "response_ip": "::1", "icmp_seq": 2, "ttl": 64, "time_ms": 0.122}]} diff --git a/tests/test_ping.py b/tests/test_ping.py index d78a3e74..f16bdcf8 100644 --- a/tests/test_ping.py +++ b/tests/test_ping.py @@ -132,21 +132,42 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/freebsd12/ping6-ip.out'), 'r', encoding='utf-8') as f: self.freebsd12_ping6_ip = f.read() - - - - # osx + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-hostname-p.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_hostname_p = f.read() + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-hostname-s.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_hostname_s = f.read() + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-hostname.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_hostname = f.read() + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-ip-p.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_ip_p = f.read() + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-ip-s.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_ip_s = f.read() - # with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-a2.out'), 'r', encoding='utf-8') as f: - # self.osx_10_14_6_ping_a2 = f.read() + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-ip.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_ip = f.read() - # with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/freebsd12/ping-a.out'), 'r', encoding='utf-8') as f: - # self.freebsd_ping_a = f.read() + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-hostname-p.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_hostname_p = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-hostname-s.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_hostname_s = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-hostname.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_hostname = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-ip-p.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_ip_p = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-ip-s.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_ip_s = f.read() + + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-ip.out'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_ip = f.read() # output @@ -271,26 +292,42 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/freebsd12/ping6-ip.json'), 'r', encoding='utf-8') as f: self.freebsd12_ping6_ip_json = json.loads(f.read()) + # osx: + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-hostname-p.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_hostname_p_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-hostname-s.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_hostname_s_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-hostname.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_hostname_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-ip-p.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_ip_p_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-ip-s.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_ip_s_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-ip.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping_ip_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-hostname-p.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_hostname_p_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-hostname-s.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_hostname_s_json = json.loads(f.read()) - # with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/ubuntu-18.04/ping.json'), 'r', encoding='utf-8') as f: - # self.ubuntu_18_4_ping_json = json.loads(f.read()) - - # with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping-a2.json'), 'r', encoding='utf-8') as f: - # self.osx_10_14_6_ping_a2_json = json.loads(f.read()) - - # with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/freebsd12/ping-a.json'), 'r', encoding='utf-8') as f: - # self.freebsd12_ping_a_json = json.loads(f.read()) - + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-hostname.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_hostname_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-ip-p.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_ip_p_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-ip-s.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_ip_s_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ping6-ip.json'), 'r', encoding='utf-8') as f: + self.osx_10_14_6_ping6_ip_json = json.loads(f.read()) def test_ping_nodata(self): """ @@ -460,9 +497,6 @@ class MyTests(unittest.TestCase): """ self.assertEqual(jc.parsers.ping.parse(self.fedora32_ping6_hostname_O_D_p_s, quiet=True), self.fedora32_ping6_hostname_O_D_p_s_json) - - - def test_ping_hostname_p_freebsd12(self): """ Test 'ping -p' on freebsd12 @@ -534,18 +568,78 @@ class MyTests(unittest.TestCase): Test 'ping6 ' on freebsd12 """ self.assertEqual(jc.parsers.ping.parse(self.freebsd12_ping6_ip, quiet=True), self.freebsd12_ping6_ip_json) - - # def test_ping_a_osx_10_14_6(self): - # """ - # Test 'ping -a' on OSX 10.14.6 - # """ - # self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping_a, quiet=True), self.osx_10_14_6_ping_a_json) - # def test_ping_a_freebsd12(self): - # """ - # Test 'ping -a' on FreeBSD12 - # """ - # self.assertEqual(jc.parsers.ping.parse(self.freebsd_ping_a, quiet=True), self.freebsd12_ping_a_json) + def test_ping_hostname_p_osx_10_14_6(self): + """ + Test 'ping -p' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping_hostname_p, quiet=True), self.osx_10_14_6_ping_hostname_p_json) + + def test_ping_hostname_s_osx_10_14_6(self): + """ + Test 'ping -s' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping_hostname_s, quiet=True), self.osx_10_14_6_ping_hostname_s_json) + + def test_ping_ping_hostname_osx_10_14_6(self): + """ + Test 'ping ' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping_hostname, quiet=True), self.osx_10_14_6_ping_hostname_json) + + def test_ping_ip_p_osx_10_14_6(self): + """ + Test 'ping -p' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping_ip_p, quiet=True), self.osx_10_14_6_ping_ip_p_json) + + def test_ping_ip_s_osx_10_14_6(self): + """ + Test 'ping -s' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping_ip_s, quiet=True), self.osx_10_14_6_ping_ip_s_json) + + def test_ping_ip_osx_10_14_6(self): + """ + Test 'ping6 ' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping_ip, quiet=True), self.osx_10_14_6_ping_ip_json) + + def test_ping6_hostname_p_osx_10_14_6(self): + """ + Test 'ping6 -p' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping6_hostname_p, quiet=True), self.osx_10_14_6_ping6_hostname_p_json) + + def test_ping6_hostname_s_osx_10_14_6(self): + """ + Test 'ping6 -s' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping6_hostname_s, quiet=True), self.osx_10_14_6_ping6_hostname_s_json) + + def test_ping6_hostname_osx_10_14_6(self): + """ + Test 'ping6 ' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping6_hostname, quiet=True), self.osx_10_14_6_ping6_hostname_json) + + def test_ping6_ip_p_osx_10_14_6(self): + """ + Test 'ping6 -p' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping6_ip_p, quiet=True), self.osx_10_14_6_ping6_ip_p_json) + + def test_ping6_ip_s_osx_10_14_6(self): + """ + Test 'ping6 -s' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping6_ip_s, quiet=True), self.osx_10_14_6_ping6_ip_s_json) + + def test_ping6_ip_osx_10_14_6(self): + """ + Test 'ping6 ' on osx 10.14.6 + """ + self.assertEqual(jc.parsers.ping.parse(self.osx_10_14_6_ping6_ip, quiet=True), self.osx_10_14_6_ping6_ip_json) if __name__ == '__main__':