コード例 #1
0
ファイル: test_base.py プロジェクト: editxt/editxt
 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)
コード例 #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)