From 415f1cb1c7dd5fbfe21cca0c6eea2eb998bbd1a0 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Mon, 27 Jan 2020 22:49:34 -0500 Subject: Renamed locals_in_py to self_in_py This more accurately reflects what it controls --- tests/test_cmd2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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 -- cgit v1.2.1