Skip to content

Commit 79fb9cf

Browse files
serhiy-storchakazvynclaude
committed
gh-66335: Test uppercase IMAP4 command names
Co-authored-by: Milan Oberkirch <zvyn@oberkirch.org> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a50b089 commit 79fb9cf

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lib/test/test_imaplib.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,16 @@ def test_xatom(self):
14151415
self.assertEqual(data, [b'MYCOMMAND completed'])
14161416
self.assertEqual(server.args, ['arg1', 'arg2'])
14171417

1418+
def test_uppercase_command_names(self):
1419+
client, server = self._setup(SimpleIMAPHandler)
1420+
client.login('user', 'pass')
1421+
self.assertEqual(client.CAPABILITY, client.capability)
1422+
self.assertEqual(client.SELECT, client.select)
1423+
typ, data = client.CAPABILITY()
1424+
self.assertEqual(typ, 'OK')
1425+
with self.assertRaises(AttributeError):
1426+
client.NONEXISTENT
1427+
14181428
def test_control_characters(self):
14191429
client, _ = self._setup(SimpleIMAPHandler)
14201430
for c0 in support.control_characters_c0():

0 commit comments

Comments
 (0)