'Test that AUTH is advertised to clients which issue an EHLO command.'

def test_authenticationCapabilityAdvertised(self):

    self.transport.clear()
    self.server.dataReceived('EHLO\r\n')
    responseLines = self.transport.value().splitlines()
    self.assertEqual(responseLines[0], '250-localhost    Hello    127.0.0.1,    nice    to    meet    you')
    self.assertEqual(responseLines[1], '250    AUTH    LOGIN')
    self.assertEqual(len(responseLines), 2)
