mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-06 22:32:54 +02:00
add test for empty directory
This commit is contained in:
@ -215,6 +215,12 @@ class MyTests(unittest.TestCase):
|
|||||||
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ls-lR-empty-folder.json'), 'r', encoding='utf-8') as f:
|
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ls-lR-empty-folder.json'), 'r', encoding='utf-8') as f:
|
||||||
self.osx_10_14_6_ls_lR_empty_folder_json = json.loads(f.read())
|
self.osx_10_14_6_ls_lR_empty_folder_json = json.loads(f.read())
|
||||||
|
|
||||||
|
def test_ls_empty_dir(self):
|
||||||
|
"""
|
||||||
|
Test plain 'ls' on an empty directory
|
||||||
|
"""
|
||||||
|
self.assertEqual(jc.parsers.ls.parse('', quiet=True), [])
|
||||||
|
|
||||||
def test_ls_centos_7_7(self):
|
def test_ls_centos_7_7(self):
|
||||||
"""
|
"""
|
||||||
Test plain 'ls /' on Centos 7.7
|
Test plain 'ls /' on Centos 7.7
|
||||||
|
Reference in New Issue
Block a user