def test_incompleteFetchSpecificPartialResponse(self):
        """
        If the server responds to a I{BODY[TEXT]} request with a I{FETCH} line
        which is truncated after the I{BODY[TEXT]<offset>} tokens, the
        L{Deferred} returned by L{IMAP4Client.fetchUID} fails with
        L{IllegalServerResponse}.
        """
        d = self.client.fetchSpecific('8', headerType='TEXT')
        self.assertEqual(
            self.transport.value(), b'0001 FETCH 8 BODY[TEXT]\r\n')
        self.client.lineReceived(b'* 8 FETCH (BODY[TEXT]<17>)')
        self.client.lineReceived(b'0001 OK FETCH completed')
        self.failureResultOf(d, imap4.IllegalServerResponse)

        If the server responds to a I{BODY[TEXT]} request with a I{FETCH} line
        which is truncated after the I{BODY[TEXT]<offset>} tokens, the
        L{Deferred} returned by L{IMAP4Client.fetchUID} fails with
        L{IllegalServerResponse}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/test/test_imap.py