diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-07-10 21:21:03 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-07-10 21:21:03 -0400 |
commit | 35ec62b1f8dc9a3de397cdcd9cdd66cd2c381f0e (patch) | |
tree | 65731c81d621d5fb546ab7f18b663d37471a8276 /tests/test_cmd2.py | |
parent | dbd83973b62b87e8dc74426af410b0852360f7e8 (diff) | |
download | cmd2-git-35ec62b1f8dc9a3de397cdcd9cdd66cd2c381f0e.tar.gz |
Restore self.statement_parser to a public attribute in cmd2.Cmd
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index c9a41033..9ffe547a 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -109,7 +109,7 @@ def test_base_show_readonly(base_app): expected = normalize(SHOW_TXT + '\nRead only settings:' + """ Commands may be terminated with: {} Output redirection and pipes allowed: {} -""".format(base_app._statement_parser.terminators, base_app.allow_redirection)) +""".format(base_app.statement_parser.terminators, base_app.allow_redirection)) assert out == expected @@ -532,7 +532,7 @@ def test_feedback_to_output_false(base_app): def test_disallow_redirection(base_app): # Set allow_redirection to False - base_app._statement_parser.allow_redirection = False + base_app.statement_parser.allow_redirection = False filename = 'test_allow_redirect.txt' |