diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-19 13:01:50 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-19 13:01:50 -0400 |
commit | c2a3f6770e587b6203ae8b843f64a7135e605b1b (patch) | |
tree | a41d5e913747dfd8853c454bd5026def62436957 /tests/test_completion.py | |
parent | 44c38e351a7799b93beda23fa95e37305cfd2535 (diff) | |
download | cmd2-git-c2a3f6770e587b6203ae8b843f64a7135e605b1b.tar.gz |
More quoted completion unit tests
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r-- | tests/test_completion.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index a7a90941..3d4b0222 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -905,10 +905,14 @@ def test_cmd2_help_subcommand_completion_single_end(sc_app): line = 'help base' endidx = len(line) begidx = endidx - len(text) - - # Commands with subcommands have a space at the end when the cursor is at the end of the line assert sc_app.complete_help(text, line, begidx, endidx) == ['base '] +def test_cmd2_help_subcommand_completion_quotes(sc_app): + text = 'base' + line = 'help "base' + endidx = len(line) + begidx = endidx - len(text) + assert sc_app.complete_help(text, line, begidx, endidx) == ['base" '] def test_cmd2_help_subcommand_completion_single_mid(sc_app): text = 'ba' |