-
-
Save teward/79dcdac64a950ffda8feecc4132ff1e6 to your computer and use it in GitHub Desktop.
evil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import imaplibext | |
import unittest | |
class TestIMAPMethods(unittest.TestCase): | |
def test_imap4_plain(self): | |
try: | |
conn = imaplibext.IMAP4('mail-server', 143) | |
except: | |
conn = None | |
self.assertIsNotNone(conn) | |
self.assertEqual(conn.state, 'NONAUTH') | |
def test_imap4_ssl(self): | |
try: | |
conn = imaplibext.IMAP4_SSL('mail-server', 993) | |
except: | |
conn = None | |
self.assertIsNotNone(conn) | |
self.assertEqual(conn.state, 'NONAUTH') | |
if __name__ == '__main__': | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment