1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-15 20:14:12 +02:00

add input type checking

This commit is contained in:
Kelly Brazil
2021-11-30 09:51:27 -08:00
parent cfb58b1cf3
commit caf0a5c871
2 changed files with 7 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ class MyTests(unittest.TestCase):
"""
Test 'vmstat' with no data
"""
self.assertEqual(list(jc.parsers.vmstat_s.parse('', quiet=True)), [])
self.assertEqual(list(jc.parsers.vmstat_s.parse([], quiet=True)), [])
def test_vmstat_s_unparsable(self):
data = 'unparsable data'