From a75744075b0628bdb711d8a929a759b4b4067edb Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 10 Jun 2020 17:29:41 -0700 Subject: [PATCH] add no data test --- tests/test_dig.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_dig.py b/tests/test_dig.py index 6e7ad431..c124dd51 100644 --- a/tests/test_dig.py +++ b/tests/test_dig.py @@ -101,6 +101,12 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/dig-axfr.json'), 'r', encoding='utf-8') as f: self.osx_10_14_6_dig_axfr_json = json.loads(f.read()) + def test_dig_nodata(self): + """ + Test 'dig' with no data + """ + self.assertEqual(jc.parsers.dig.parse('', quiet=True), []) + def test_dig_centos_7_7(self): """ Test 'dig' on Centos 7.7