def test_tooManyArgumentsForCommand(self):
        """
        L{imap4.IMAP4Server} responds with a C{BAD} response to a
        command with more arguments than expected.
        """
        self.server.lineReceived(b"001 LOGIN A B C")
        self.assertEqual(
            self.transport.value(),
            (b"001 BAD Illegal syntax:" +
             b" Too many arguments for command: " +
             repr(b'C').encode("utf-8") +
             b"\r\n"
            )
        )

        L{imap4.IMAP4Server} responds with a C{BAD} response to a
        command with more arguments than expected.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/test/test_imap.py