def string_contains_continuous_characters(value):
    """
    Returns True if the the value passed consists entirely of continuous characters, either forward or reverse.
    This is based on the ASCII decimal value of each character.
    For example, all the following qill return True: '1234567', 'defghij', '98765'
    http://www.asciitable.com/
    """
    previous_forward = None
    previous_backward = None
    for c in value:
        if not previous_forward and not previous_backward:
            previous_forward = previous_backward = ord(c)
            continue
        if ord(c) != previous_forward + 1 and ord(c) != previous_backward - 1:
            return False
        previous_forward = previous_backward = ord(c)
    return True
