diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-16 17:55:26 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-16 17:55:26 (GMT) |
commit | dbe7519da9d0a99d68aaa773cde2793900dad44f (patch) | |
tree | 71e84e5f556b6021132452a1c3a7f7ac440fe6e1 /Lib/test/test_imaplib.py | |
parent | 36c0dbc9be1f21feec2218e3357fbf3a4dded8c1 (diff) | |
download | cpython-dbe7519da9d0a99d68aaa773cde2793900dad44f.zip cpython-dbe7519da9d0a99d68aaa773cde2793900dad44f.tar.gz cpython-dbe7519da9d0a99d68aaa773cde2793900dad44f.tar.bz2 |
Issue #10429: IMAP.starttls() stored the capabilities as bytes objects,
rather than strings.
Diffstat (limited to 'Lib/test/test_imaplib.py')
-rw-r--r-- | Lib/test/test_imaplib.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py index 6b44490..b97989f 100644 --- a/Lib/test/test_imaplib.py +++ b/Lib/test/test_imaplib.py @@ -208,6 +208,8 @@ class RemoteIMAPTest(unittest.TestCase): self.server.logout() def test_logincapa(self): + for cap in self.server.capabilities: + self.assertIsInstance(cap, str) self.assertTrue('LOGINDISABLED' in self.server.capabilities) self.assertTrue('AUTH=ANONYMOUS' in self.server.capabilities) rs = self.server.login(self.username, self.password) @@ -228,6 +230,8 @@ class RemoteIMAP_STARTTLSTest(RemoteIMAPTest): self.assertEqual(rs[0], 'OK') def test_logincapa(self): + for cap in self.server.capabilities: + self.assertIsInstance(cap, str) self.assertFalse('LOGINDISABLED' in self.server.capabilities) @@ -237,6 +241,8 @@ class RemoteIMAP_SSLTest(RemoteIMAPTest): imap_class = IMAP4_SSL def test_logincapa(self): + for cap in self.server.capabilities: + self.assertIsInstance(cap, str) self.assertFalse('LOGINDISABLED' in self.server.capabilities) self.assertTrue('AUTH=PLAIN' in self.server.capabilities) |