'If a server doesn\'t offer APOP but the transport is secured using
SSL or TLS, a plaintext login should be allowed, not rejected with
an InsecureAuthenticationDisallowed exception.'

def testSSLTransportConsideredSecure(self):

    (p, t) = setUp(greet=False)
    directlyProvides(t, interfaces.ISSLTransport)
    p.dataReceived('+OK    Howdy\r\n')
    d = p.login('username', 'password')
    self.assertEqual(t.value(), 'USER    username\r\n')
    t.clear()
    p.dataReceived('+OK\r\n')
    self.assertEqual(t.value(), 'PASS    password\r\n')
    p.dataReceived('+OK\r\n')
    return d
