def test(options, hist, command=dummy_command): with test_app() as app: history = app.text_commander.history mod.save_options(options, command, history) eq_(next(iter(history), None), hist)
def test(options, hist, command=dummy_command): with replace_history() as history: mod.save_options(options, command, history) eq_(next(iter(history), None), hist)