예제 #1
0
파일: test_base.py 프로젝트: editxt/editxt
 def test(argstr=None, value=None):
     with test_app() as app:
         history = app.text_commander.history
         if argstr:
             history.append(argstr)
         options = mod.load_options(dummy_command, history)
         eq_(options, Options(value=value))
예제 #2
0
 def test(argstr=None, value=None):
     with replace_history() as history:
         if argstr:
             history.append(argstr)
         options = mod.load_options(dummy_command, history)
         eq_(options, Options(value=value))