def test_authenticationCapabilityAdvertised(self):
        """
        Test that AUTH is advertised to clients which issue an EHLO command.
        """
        self.transport.clear()
        self.server.dataReceived(b'EHLO\r\n')
        responseLines = self.transport.value().splitlines()
        self.assertEqual(
            responseLines[0],
            b"250-localhost Hello 127.0.0.1, nice to meet you")
        self.assertEqual(
            responseLines[1],
            b"250 AUTH LOGIN")
        self.assertEqual(len(responseLines), 2)

        Test that AUTH is advertised to clients which issue an EHLO command.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/test/test_smtp.py