From f2ffb93eeaf4c8b5aa93f3e8808bdc044582e8a0 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 10 May 2021 10:43:40 -0700 Subject: [PATCH] formatting --- tests/test_ping.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/test_ping.py b/tests/test_ping.py index 14478d3d..aa9704b2 100644 --- a/tests/test_ping.py +++ b/tests/test_ping.py @@ -30,12 +30,9 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/ping6-ip-O-p.out'), 'r', encoding='utf-8') as f: self.centos_7_7_ping6_ip_O_p = f.read() - with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/ping6-ip-O-p-unparsable.out'), 'r', encoding='utf-8') as f: self.centos_7_7_ping6_ip_O_p_unparsable = f.read() - - with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/ping6-ip-O-D-p.out'), 'r', encoding='utf-8') as f: self.centos_7_7_ping6_ip_O_D_p = f.read() @@ -227,12 +224,9 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/ping6-ip-O-p.json'), 'r', encoding='utf-8') as f: self.centos_7_7_ping6_ip_O_p_json = json.loads(f.read()) - with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/ping6-ip-O-p-unparsable.json'), 'r', encoding='utf-8') as f: self.centos_7_7_ping6_ip_O_p_unparsable_json = json.loads(f.read()) - - with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/ping6-ip-O-D-p.json'), 'r', encoding='utf-8') as f: self.centos_7_7_ping6_ip_O_D_p_json = json.loads(f.read()) @@ -445,15 +439,11 @@ class MyTests(unittest.TestCase): """ self.assertEqual(jc.parsers.ping.parse(self.centos_7_7_ping6_ip_O_p, quiet=True), self.centos_7_7_ping6_ip_O_p_json) - def test_ping6_ip_O_p_unparsable_centos_7_7(self): """ Test 'ping6 -O -p' with unparsable lines on Centos 7.7 """ self.assertEqual(jc.parsers.ping.parse(self.centos_7_7_ping6_ip_O_p_unparsable, quiet=True), self.centos_7_7_ping6_ip_O_p_unparsable_json) - - - def test_ping6_ip_O_D_p_centos_7_7(self): """