'If the server responds with an incomplete I{FETCH} response line, the
L{Deferred} returned by L{IMAP4Client.fetchUID} fails with
L{IllegalServerResponse}.'

def test_incompleteFetchUIDResponse(self):

    d = self.client.fetchUID('1:7')
    self.assertEqual(self.transport.value(), '0001    FETCH    1:7    (UID)\r\n')
    self.client.lineReceived('*    2    FETCH    (UID    22)')
    self.client.lineReceived('*    3    FETCH    (UID)')
    self.client.lineReceived('*    4    FETCH    (UID    24)')
    self.client.lineReceived('0001    OK    FETCH    completed')
    self.assertRaises(imap4.IllegalServerResponse, self._extractDeferredResult, d)
