summaryrefslogtreecommitdiff
path: root/tests/test_completion.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-08-01 12:00:08 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-08-01 12:00:08 -0400
commit47f963e4912ce8e765cf0f724e5d19f2cecd4bce (patch)
tree46a0ca7ddf7ef97eab7fb799ca254b7d3890c510 /tests/test_completion.py
parentfd85d80f357feca7725fd4be66757b578eff3067 (diff)
downloadcmd2-git-47f963e4912ce8e765cf0f724e5d19f2cecd4bce.tar.gz
Added alphabetical_sort() function
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r--tests/test_completion.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py
index 138ab413..d50ad039 100644
--- a/tests/test_completion.py
+++ b/tests/test_completion.py
@@ -410,7 +410,7 @@ def test_delimiter_completion(cmd2_app):
# Remove duplicates from display_matches and sort it. This is typically done in complete().
display_list = utils.remove_duplicates(cmd2_app.display_matches)
- display_list.sort(key=str.lower)
+ display_list = utils.alphabetical_sort(display_list)
assert display_list == ['other user', 'user']