summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-02-20 23:14:35 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-02-20 23:14:35 -0500
commita3511a69bde151ac8273d71f1b6b720217576f42 (patch)
tree0ef2bc5618443d11c2d1434d3c05e02c8c72e1a4 /tests/test_cmd2.py
parent0abcb7038dfaf85717b82dedad92bfce44a5a283 (diff)
parent086d4db5e10b9bfe64c767a2dad9c38fe95f299c (diff)
downloadcmd2-git-a3511a69bde151ac8273d71f1b6b720217576f42.tar.gz
Merge branch 'master' into history
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r--tests/test_cmd2.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 1b554fef..51b51224 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1621,6 +1621,9 @@ def test_get_macro_names(base_app):
assert len(base_app.macros) == 2
assert sorted(base_app.get_macro_names()) == ['bar', 'foo']
+def test_get_settable_names(base_app):
+ assert sorted(base_app.get_settable_names()) == sorted(base_app.settable.keys())
+
def test_alias_no_subcommand(base_app, capsys):
out = run_cmd(base_app, 'alias')
assert "Usage: alias [-h]" in out[0]