diff options
author | Doug Hellmann <doug.hellmann@gmail.com> | 2013-05-31 09:31:53 -0700 |
---|---|---|
committer | Doug Hellmann <doug.hellmann@gmail.com> | 2013-05-31 09:31:53 -0700 |
commit | 74ad79b8c1c6ecaa3e107684daf42623bdce6055 (patch) | |
tree | 8c8df55a33922dfe85ea4fc734c59b264f110642 /tests/test_app.py | |
parent | a823781a2c7ab9970b6a11b2521a0b07554d9a35 (diff) | |
parent | 79d1f97911a5a65c2cb2b495193432adabbf42d6 (diff) | |
download | cliff-74ad79b8c1c6ecaa3e107684daf42623bdce6055.tar.gz |
Merge pull request #6 from Kami/expose_instantiated_interpreter_instance
Expose instantiated interpreter instance
Diffstat (limited to 'tests/test_app.py')
-rw-r--r-- | tests/test_app.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_app.py b/tests/test_app.py index ce6bf62..db80bbc 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -46,7 +46,9 @@ def test_interactive_mode_cmdloop(): app.interactive_app_factory = mock.MagicMock( name='interactive_app_factory' ) + assert app.interpreter is None app.run([]) + assert app.interpreter is not None app.interactive_app_factory.return_value.cmdloop.assert_called_once_with() |