def test(max_number):
    """ Test every single value for uniqueness and that they are properly decoded.
        This can take some time for large SIZE values, but need only be done once
        if the settings do not change.
    """
    fi = FriendlyID()

    # Check all numbers are unique
    from collections import defaultdict
    a = defaultdict()
    for i in range(max_number+1):
        if fi.encode(i) in a:
            print a
            return False
        a[fi.encode(i)] = i

    return True
dataset/ETHPy150Open willhardy/Roll-Your-Own/rollyourown/commerce/utils/friendly_id.py/test/original