def METHOD_NAME(self, mock_popen, mock_exists, mock_access):
    mock_exists.return_value = True
    command_run = namedtuple(
        'command', ['output', 'error', 'returncode']
    )
    run_result = command_run(
        output='stdout',
        error='stderr',
        returncode=0
    )
    mock_process = mock.Mock()
    mock_process.communicate = mock.Mock(
        return_value=[str.encode('stdout'), str.encode('stderr')]
    )
    mock_process.returncode = 0
    mock_popen.return_value = mock_process
    mock_access.return_value = True
    assert Command.run(['command', 'args']) == run_result