]> granicus.if.org Git - python/commitdiff
Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek KoƂodziej
authorMartin Panter <vadmium+py@gmail.com>
Mon, 6 Jun 2016 02:03:11 +0000 (02:03 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Mon, 6 Jun 2016 02:03:11 +0000 (02:03 +0000)
Lib/smtpd.py
Lib/test/test_smtpd.py

index 5f3b05eff86e46e487fe1eb00c07d29ad98d7938..8103ca9af0d7b3f2fb20a02b34182d97ef30a8e3 100755 (executable)
@@ -89,7 +89,10 @@ import collections
 from warnings import warn
 from email._header_value_parser import get_addr_spec, get_angle_addr
 
-__all__ = ["SMTPServer","DebuggingServer","PureProxy","MailmanProxy"]
+__all__ = [
+    "SMTPChannel", "SMTPServer", "DebuggingServer", "PureProxy",
+    "MailmanProxy",
+]
 
 program = sys.argv[0]
 __version__ = 'Python SMTP proxy version 0.3'
index d92c9b3b020ee57c00926031efa1a210fd5335f4..3eebe948ad8f7c20733abcfb6f881551781b7f36 100644 (file)
@@ -998,5 +998,16 @@ class SMTPDChannelTestWithEnableSMTPUTF8True(unittest.TestCase):
             self.write_line(b'test\r\n.')
             self.assertEqual(self.channel.socket.last[0:3], b'250')
 
+
+class MiscTestCase(unittest.TestCase):
+    def test__all__(self):
+        blacklist = {
+            "program", "Devnull", "DEBUGSTREAM", "NEWLINE", "COMMASPACE",
+            "DATA_SIZE_DEFAULT", "usage", "Options", "parseargs",
+
+        }
+        support.check__all__(self, smtpd, blacklist=blacklist)
+
+
 if __name__ == "__main__":
     unittest.main()