def _response(self, *lines):
        """
        Deliver the given (unterminated) response lines to C{self.client} and
        then deliver a tagged SELECT or EXAMINE completion line to finish the
        SELECT or EXAMINE response.
        """
        for line in lines:
            self.client.dataReceived(line + b'\r\n')
        self.client.dataReceived(
            b'0001 OK [READ-ONLY] ' + self.command + b' completed\r\n')

        Deliver the given (unterminated) response lines to C{self.client} and
        then deliver a tagged SELECT or EXAMINE completion line to finish the
        SELECT or EXAMINE response.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/test/test_imap.py