bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)

3 files changed