def corrupt(self, key):
    '\n        Mostly used for debugging, purposely corrupts state encoded protobuf\n        in redis, and writes it back to datastore\n\n        Args:\n            key: key on redis\n\n        '
    rand_bytes = random.getrandbits(8)
    byte_str = bytes([rand_bytes])
    self.client[key] = byte_str
    print(('Corrupted %s in redis' % key))
Mostly used for debugging, purposely corrupts state encoded protobuf
in redis, and writes it back to datastore

Args:
    key: key on redis
def corrupt(self, key):
    '\n        Mostly used for debugging, purposely corrupts state encoded protobuf\n        in redis, and writes it back to datastore\n\n        Args:\n            key: key on redis\n\n        '
    rand_bytes = random.getrandbits(8)
    byte_str = bytes([rand_bytes])
    self.client[key] = byte_str
    print(('Corrupted %s in redis' % key))