mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-09 01:05:53 +02:00
add test for no data
This commit is contained in:
@ -35,6 +35,12 @@ class MyTests(unittest.TestCase):
|
|||||||
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/file2.json'), 'r', encoding='utf-8') as f:
|
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/file2.json'), 'r', encoding='utf-8') as f:
|
||||||
self.osx_10_14_6_file2_json = json.loads(f.read())
|
self.osx_10_14_6_file2_json = json.loads(f.read())
|
||||||
|
|
||||||
|
def test_file_nodata(self):
|
||||||
|
"""
|
||||||
|
Test 'file' with no data
|
||||||
|
"""
|
||||||
|
self.assertEqual(jc.parsers.file.parse('', quiet=True), [])
|
||||||
|
|
||||||
def test_file_centos_7_7(self):
|
def test_file_centos_7_7(self):
|
||||||
"""
|
"""
|
||||||
Test 'file *' on Centos 7.7
|
Test 'file *' on Centos 7.7
|
||||||
|
Reference in New Issue
Block a user