def METHOD_NAME(self, mock_popen, mock_which):
    mock_which.return_value = 'command'
    mock_popen.side_effect = KiwiCommandError('Run failure')
    with raises(KiwiCommandError):
        Command.run(['command', 'args'])