diff options
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-x | tests/test_cmd2.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index b5473609..21cd941e 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -255,16 +255,12 @@ def test_base_py(base_app): assert out[0].rstrip() == 'spaces in this command' # Set locals_in_py to True and make sure we see self - out, err = run_cmd(base_app, 'set locals_in_py True') - assert 'now: True' in out - + base_app.locals_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 - out, err = run_cmd(base_app, 'set locals_in_py False') - assert 'now: False' in out - + base_app.locals_in_py = False out, err = run_cmd(base_app, 'py print(self)') assert "NameError: name 'self' is not defined" in err |