Skip to content

Commit

Permalink
Add test for the overview cli option
Browse files Browse the repository at this point in the history
modified:   tests/test_cmdline.py
  • Loading branch information
jugmac00 committed Nov 28, 2020
1 parent df82e3c commit e1cba1c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,11 @@ def test_help_is_printed(script_runner):
assert help_text in ret.stdout
assert "positional arguments" in ret.stdout
assert "optional argument" in ret.stdout


def test_print_overview(script_runner):
ret = script_runner.run('tnefparse', '-o', 'tests/examples/one-file.tnef')
assert "Overview of tests/examples/one-file.tnef" in ret.stdout
assert "Attachments" in ret.stdout
assert "Objects" in ret.stdout
assert "Properties" in ret.stdout

0 comments on commit e1cba1c

Please sign in to comment.