Skip to content

Commit

Permalink
test: add a test for allowing numbers in ionice class
Browse files Browse the repository at this point in the history
  • Loading branch information
eyJhb committed Oct 20, 2018
1 parent 611c72b commit 724e9a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rotate_backups/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ def test_argument_validation(self):
# Test that an invalid ionice scheduling class causes an error to be reported.
returncode, output = run_cli(main, '--ionice=unsupported-class')
assert returncode != 0
# Test that a numbered ionice scheduling class does not causes an error.
returncode, output = run_cli(main, '--ionice=3')
assert returncode == 0
# Test that an invalid rotation scheme causes an error to be reported.
returncode, output = run_cli(main, '--hourly=not-a-number')
assert returncode != 0
Expand Down

0 comments on commit 724e9a8

Please sign in to comment.