summaryrefslogtreecommitdiff
path: root/tests/test_completion.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-19 13:01:50 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-19 13:01:50 -0400
commitc2a3f6770e587b6203ae8b843f64a7135e605b1b (patch)
treea41d5e913747dfd8853c454bd5026def62436957 /tests/test_completion.py
parent44c38e351a7799b93beda23fa95e37305cfd2535 (diff)
downloadcmd2-git-c2a3f6770e587b6203ae8b843f64a7135e605b1b.tar.gz
More quoted completion unit tests
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r--tests/test_completion.py8
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'