diff options
author | kotfu <kotfu@kotfu.net> | 2018-04-25 22:17:56 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-04-25 22:17:56 -0600 |
commit | 05ee395f0d487fc67979ce3d0824bdaadff5c811 (patch) | |
tree | ba2cf14ed249e2a0d3cb990e2944fc758c099a31 /tests/test_argparse.py | |
parent | a50c5683fd8aa499fb5dd4133198fe27c99c969c (diff) | |
download | cmd2-git-05ee395f0d487fc67979ce3d0824bdaadff5c811.tar.gz |
Remove POSIX_SHLEX and STRIP_QUOTES_FOR_NON_POSIX
Diffstat (limited to 'tests/test_argparse.py')
-rw-r--r-- | tests/test_argparse.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/test_argparse.py b/tests/test_argparse.py index 6a9a93a7..f7c6eaba 100644 --- a/tests/test_argparse.py +++ b/tests/test_argparse.py @@ -124,8 +124,6 @@ def test_argparse_basic_command(argparse_app): assert out == ['hello'] def test_argparse_quoted_arguments(argparse_app): - argparse_app.POSIX = False - argparse_app.STRIP_QUOTES_FOR_NON_POSIX = True out = run_cmd(argparse_app, 'say "hello there"') assert out == ['hello there'] @@ -138,21 +136,9 @@ def test_argparse_with_list_and_empty_doc(argparse_app): assert out == ['HELLO WORLD!'] def test_argparse_quoted_arguments_multiple(argparse_app): - argparse_app.POSIX = False - argparse_app.STRIP_QUOTES_FOR_NON_POSIX = True out = run_cmd(argparse_app, 'say "hello there" "rick & morty"') assert out == ['hello there rick & morty'] -def test_argparse_quoted_arguments_posix(argparse_app): - argparse_app.POSIX = True - out = run_cmd(argparse_app, 'tag strong this should be loud') - assert out == ['<strong>this should be loud</strong>'] - -def test_argparse_quoted_arguments_posix_multiple(argparse_app): - argparse_app.POSIX = True - out = run_cmd(argparse_app, 'tag strong this "should be" loud') - assert out == ['<strong>this should be loud</strong>'] - def test_argparse_help_docstring(argparse_app): out = run_cmd(argparse_app, 'help say') assert out[0].startswith('usage: say') |