Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek Kołodziej

This commit is contained in:
Martin Panter 2016-06-06 02:03:11 +00:00
parent d04d21373f
commit 380ef01299
2 changed files with 15 additions and 1 deletions

View File

@ -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'

View 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()