Skip to content

Commit

Permalink
add no data test
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjonbrazil committed Dec 4, 2023
1 parent 29b012e commit 8b94c32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_swapon.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ def setUpClass(cls):
cls.f_in[file] = a.read()
cls.f_json[file] = json.loads(b.read())

def test_foo_nodata(self):
"""
Test 'foo' with no data
"""
self.assertEqual(parse('', quiet=True), [])

def test_swapon_all(self):
"""
Test 'swapon --output-all'
Expand Down

0 comments on commit 8b94c32

Please sign in to comment.