diff --git a/tests/test_du.py b/tests/test_du.py index 907c3f55..b10b21e0 100644 --- a/tests/test_du.py +++ b/tests/test_du.py @@ -35,6 +35,12 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/du.json'), 'r', encoding='utf-8') as f: self.osx_10_14_6_du_json = json.loads(f.read()) + def test_du_nodata(self): + """ + Test 'du' with no data + """ + self.assertEqual(jc.parsers.du.parse('', quiet=True), []) + def test_du_centos_7_7(self): """ Test 'du' on Centos 7.7