'An error is raised when trying to use a too long key: the called
command returns a L{Deferred} which fails with a L{ClientError}.'

def test_tooLongKey(self):

    d1 = self.assertFailure(self.proto.set(('a' * 500), 'bar'), ClientError)
    d2 = self.assertFailure(self.proto.increment(('a' * 500)), ClientError)
    d3 = self.assertFailure(self.proto.get(('a' * 500)), ClientError)
    d4 = self.assertFailure(self.proto.append(('a' * 500), 'bar'), ClientError)
    d5 = self.assertFailure(self.proto.prepend(('a' * 500), 'bar'), ClientError)
    d6 = self.assertFailure(self.proto.getMultiple(['foo', ('a' * 500)]), ClientError)
    return gatherResults([d1, d2, d3, d4, d5, d6])
