def test_list_long_type():
    filename, mode = 'test.h5', 'w'
    list_obj = [1L, 2L, 3L, 4L, 5L]
    dump(list_obj, filename, mode)
    list_hkl = load(filename)
    #print "Initial list:   %s"%list_obj
    #print "Unhickled data: %s"%list_hkl
    try:
        assert type(list_obj) == type(list_hkl) == list
        assert list_obj == list_hkl
        assert type(list_obj[0]) == type(list_hkl[0])
        
        os.remove(filename)
    except AssertionError:
        print "ERR:", list_obj, list_hkl
        import h5py
        a = h5py.File(filename)
        print a.keys()
        print a['data'].keys()
        os.remove(filename)
        raise
Render buttons for form
dataset/ETHPy150Open telegraphic/hickle/tests/test_hickle.py/test_list_long_type--crossover with--dataset/ETHPy150Open dyve/django-bootstrap3/bootstrap3/templatetags/bootstrap3.py/bootstrap_buttons