summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-02-20 22:24:06 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-02-20 22:24:06 -0500
commit5d49abe3623c0b3cc7b83c544eda64b35280a05e (patch)
treef45af732f0bfe3b3caa08474ab8cd5c3092509f8 /tests/test_cmd2.py
parent10f6b1d2eb05f636ce4b2874235b95e0cb83ee4a (diff)
downloadcmd2-git-5d49abe3623c0b3cc7b83c544eda64b35280a05e.tar.gz
Added unit test
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 630a8fa0..09c4fa6c 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1849,6 +1849,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]