Пример #1
0
def test():
    c = CalculationStatus(None, 1296)
    pr = PartitionResult(CODETABLE.ALL, 8)
    c.next_candidate(pr)
    cc = CalculationStatus(c, len(pr.parts[11]))
    m = cc.make_message(100, "TESTING")

    print m

    (n, total, name, chain) = cc.parse_message(m)
    print (n, total, name, chain)
    for c in chain:
        print c.to_string()