'A pending query which failed because of a ConnectionLost should
receive an L{ident.IdentError}.'

def test_lostConnection(self):

    d = defer.Deferred()
    self.client.queries.append((d, 765, 432))
    self.client.connectionLost(failure.Failure(error.ConnectionLost()))
    return self.assertFailure(d, ident.IdentError)
