예제 #1
0
파일: test.py 프로젝트: PetrGlad/hessianpy
def autoLoopBackTest(value):
    s = StringIO()
    hessian.writeObject(WriteContext(s), value, None)    
    s.seek(0)    
    r = readObjectByPrefix(ParseContext(s), s.read(1))
    assert r == value
예제 #2
0
def autoLoopBackTest(value):
    s = StringIO()
    hessian.writeObject(WriteContext(s), value, None)
    s.seek(0)
    r = readObjectByPrefix(ParseContext(s), s.read(1))
    assert r == value
예제 #3
0
파일: test.py 프로젝트: PetrGlad/hessianpy
def readObjectString(txt):
    stream = StringIO(txt)
    return readObjectByPrefix(ParseContext(stream), stream.read(1))
예제 #4
0
def readObjectString(txt):
    stream = StringIO(txt)
    return readObjectByPrefix(ParseContext(stream), stream.read(1))