summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-06-15 16:03:26 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2019-06-15 16:03:26 -0400
commitd68b3feb3095ec717655972c5e4dc89d7c1ed579 (patch)
treefc3ce5e426ee0d4b58dfc571b9dd8080879233ed /tests
parent52ea5e4a6bf22a0f1dfb498b5cbe863fbc69faab (diff)
downloadcmd2-git-d68b3feb3095ec717655972c5e4dc89d7c1ed579.tar.gz
Updated CHANGELOG and made some more methods protected
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index c563082e..1b761306 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1560,17 +1560,17 @@ def test_get_alias_names(base_app):
run_cmd(base_app, 'alias create fake run_pyscript')
run_cmd(base_app, 'alias create ls !ls -hal')
assert len(base_app.aliases) == 2
- assert sorted(base_app.get_alias_names()) == ['fake', 'ls']
+ assert sorted(base_app._get_alias_names()) == ['fake', 'ls']
def test_get_macro_names(base_app):
assert len(base_app.macros) == 0
run_cmd(base_app, 'macro create foo !echo foo')
run_cmd(base_app, 'macro create bar !echo bar')
assert len(base_app.macros) == 2
- assert sorted(base_app.get_macro_names()) == ['bar', 'foo']
+ 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())
+ assert sorted(base_app._get_settable_names()) == sorted(base_app.settable.keys())
def test_alias_no_subcommand(base_app):
out, err = run_cmd(base_app, 'alias')