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
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