def _random_binary_string_gen(max_length):
    """Returns a single random string up to max_length specified length that may include \x00 character anywhere in the
    string"""
    size = random.randint(0, max_length)
    return ''.join(random.choice(('\x00', 'A', 'B')) for _ in range(size))
Returns a single random string up to max_length specified length that may include  character anywhere in the
    string
petastorm/tests/test_common.py