'If the server responds with a non-integer where a message sequence
number is expected, the L{Deferred} returned by L{IMAP4Client.fetchUID}
fails with L{IllegalServerResponse}.'

def test_fetchUIDNonIntegerFound(self):

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