twisted.mail.test.test_imap.TLSTestCase.testStartTLS checks for TLS setup in a bad way

[email protected]
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from exarkun <[email protected]>:

This test uses `ITLSTransport.startTLS` and then checks to see if it worked by looking for 'TLS' in the name of the class of the transport.  Instead, it should check to see if the transport provides `ISSLTransport`.

I came across this as part of #593, as the test failed because I didn't implement `startTLS` for iocpreactor in a way which caused 'TLS' to become part of the transport class name.


----------
Type     : defect
Component: mail
Keywords : tests
Priority : high
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/3819
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.