'L{smtp.SMTPClient} sends I{HELO}, I{MAIL FROM}, I{RCPT TO}, and I{DATA}
commands based on the return values of its C{getMailFrom},
C{getMailTo}, and C{getMailData} methods.'

def test_messages(self):

    client = MySMTPClient()
    server = FakeSMTPServer()
    d = self.loopback(server, client)
    d.addCallback((lambda x: self.assertEqual(server.buffer, self.expected_output)))
    return d
