diff options
author | kmvanbrunt <kmvanbrunt@gmail.com> | 2019-02-20 23:12:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-20 23:12:02 -0500 |
commit | 086d4db5e10b9bfe64c767a2dad9c38fe95f299c (patch) | |
tree | 0256863a9846acd5001ab6a97b1756a54ccd3df7 /tests/test_cmd2.py | |
parent | d8ae68b8c151b8aea17b6299b601098910bf6373 (diff) | |
parent | 7218eb4f86da34f66ec484ad2db4b4d4a129a6e8 (diff) | |
download | cmd2-git-086d4db5e10b9bfe64c767a2dad9c38fe95f299c.tar.gz |
Merge pull request #627 from python-cmd2/tab_settables
Tab settables
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 3 |
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] |