summaryrefslogtreecommitdiff
path: root/tests/test_parsing.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-04-15 12:18:02 -0700
committerGitHub <noreply@github.com>2018-04-15 12:18:02 -0700
commit8aaf6f431ef5e0f5e4e55759a08a22a4591d8f6b (patch)
tree6ccdbef8234eea551544836450ccc6673557611c /tests/test_parsing.py
parentd4c6cd476d9cbdf306dec9ccde1efa822d2c61d8 (diff)
parent339d2ef4d3b43fcc151328eb9b1368d0900d8e81 (diff)
downloadcmd2-git-8aaf6f431ef5e0f5e4e55759a08a22a4591d8f6b.tar.gz
Merge pull request #344 from python-cmd2/delete_optparse
Delete optparse
Diffstat (limited to 'tests/test_parsing.py')
-rw-r--r--tests/test_parsing.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py
index 12b50eda..ba5126f6 100644
--- a/tests/test_parsing.py
+++ b/tests/test_parsing.py
@@ -52,15 +52,6 @@ def input_parser():
c = cmd2.Cmd()
return c.parser_manager.input_source_parser
-@pytest.fixture
-def option_parser():
- op = cmd2.OptionParser()
- return op
-
-
-def test_remaining_args():
- assert cmd2.remaining_args('-f bar bar cow', ['bar', 'cow']) == 'bar cow'
-
def test_history_span(hist):
h = hist
@@ -339,14 +330,6 @@ def test_parse_input_redirect_from_unicode_filename(input_parser):
assert results.inputFrom == line
-def test_option_parser_exit_with_msg(option_parser, capsys):
- msg = 'foo bar'
- option_parser.exit(msg=msg)
- out, err = capsys.readouterr()
- assert out == msg + '\n'
- assert err == ''
-
-
def test_empty_statement_raises_exception():
app = cmd2.Cmd()
with pytest.raises(cmd2.EmptyStatement):