def test_string():
    """ Dumping and loading a string """
    filename, mode = 'test.h5', 'w'
    string_obj = "The quick brown fox jumps over the lazy dog"
    dump(string_obj, filename, mode)
    string_hkl = load(filename)
    #print "Initial list:   %s"%list_obj
    #print "Unhickled data: %s"%list_hkl
    try:
        assert type(string_obj) == type(string_hkl) == str
        assert string_obj == string_hkl
        os.remove(filename)
    except __HOLE__:
        os.remove(filename)
        raise
dataset/ETHPy150Open telegraphic/hickle/tests/test_hickle.py/test_string