summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_cmd2.py8
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