'Test that the specified hostname shows up in the SMTP server\'s
greeting.'

def testSMTPGreetingHost(self, serverClass=smtp.SMTP):

    s = serverClass()
    s.host = 'example.com'
    t = StringTransport()
    s.makeConnection(t)
    s.connectionLost(error.ConnectionDone())
    self.assertIn('example.com', t.value())
