diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-01-27 22:49:34 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-01-27 22:49:34 -0500 |
commit | 415f1cb1c7dd5fbfe21cca0c6eea2eb998bbd1a0 (patch) | |
tree | f38d9d7496e712ef36c0856bf4c0ddcb17219c18 /tests/test_cmd2.py | |
parent | 0f8f90cc2ade4135193f5399e5e6a12271668867 (diff) | |
download | cmd2-git-415f1cb1c7dd5fbfe21cca0c6eea2eb998bbd1a0.tar.gz |
Renamed locals_in_py to self_in_py
This more accurately reflects what it controls
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-x | tests/test_cmd2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 21cd941e..a3dbe1be 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -254,13 +254,13 @@ def test_base_py(base_app): out, err = run_cmd(base_app, 'py print("spaces" + " in this " + "command")') assert out[0].rstrip() == 'spaces in this command' - # Set locals_in_py to True and make sure we see self - base_app.locals_in_py = True + # Set self_in_py to True and make sure we see self + base_app.self_in_py = True out, err = run_cmd(base_app, 'py print(self)') assert 'cmd2.cmd2.Cmd object' in out[0] - # Set locals_in_py to False and make sure we can't see self - base_app.locals_in_py = False + # Set self_in_py to False and make sure we can't see self + base_app.self_in_py = False out, err = run_cmd(base_app, 'py print(self)') assert "NameError: name 'self' is not defined" in err |