예제 #1
0
파일: test_testkd.py 프로젝트: zzj/jeweler
def test_process_line_run(mock_run_command, mock_config, mock_pause):
    testkd.process_line("othercomand")
    assert not mock_pause.called
    assert mock_run_command.called
    assert not mock_config.called
예제 #2
0
파일: test_testkd.py 프로젝트: zzj/jeweler
def test_process_line_config(mock_run_command, mock_config, mock_pause):
    testkd.process_line("config 1 2 3")
    assert not mock_pause.called
    assert not mock_run_command.called
    assert mock_config.called