def brutal_creation_test():
    errors = []
    for i in range(10000):
        print '@',
        d = {n:n for n in range(i)}
        i_d = ImmutableDict(d)
        for j in range(i):
            if j not in i_d:
                msg = '@ length {}, index {} got lost'
                errors.append(msg.format(i, j))
        if not i % 80:
            print '!'
    assert not errors, str(errors)
Note that this is incredibly slow and painful.
dataset/ETHPy150Open zhemao/funktown/unittest.py/brutal_creation_test