diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-01-29 23:20:19 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-01-29 23:20:19 -0500 |
commit | 16e3cdda9d4c1176246f1e9f9764a789a263814c (patch) | |
tree | c83f04e580581b07dce9d71916175ac9be9465b6 /tests/test_cmd2.py | |
parent | 95c5ceee69720e51f20f6b02d457936768cc154e (diff) | |
download | cmd2-git-16e3cdda9d4c1176246f1e9f9764a789a263814c.tar.gz |
Added a couple simple unit tests for optparser functionality
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 6f169ffc..6e05127f 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -209,7 +209,7 @@ def test_base_save(base_app, capsys): run_cmd(base_app, 'help save') run_cmd(base_app, 'save * {}'.format(filename)) out, err = capsys.readouterr() - assert out == 'Saved to deleteme.txt\n' + assert out == 'Saved to {}\n'.format(filename) with open(filename) as f: content = [line.strip() for line in f.readlines()] |