Exemple #1
0
 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)
Exemple #2
0
 def test(options, hist, command=dummy_command):
     with replace_history() as history:
         mod.save_options(options, command, history)
         eq_(next(iter(history), None), hist)