Issue #18409: Idle: add unittest for AutoComplete. Patch by Phil Webster.