예제 #1
0
def cli_orthology_query(params):
    '''
    params: file containing the args and kws params
    '''
    # function args and kws
    kws = filemsg.load(params)
    do_orthology_query(**kws)
예제 #2
0
def test_msg():
    
    msg = ([1, 2], {'hi': 'bye'})

    # serialize msg to a file
    filename = filemsg.dump(msg)
    print filename

    # Confirm that the file was written
    assert os.path.exists(filename)

    # read msg and delete file
    out = filemsg.load(filename)

    # Test that the unserialized values equal the serialized ones.
    assert msg == out

    # Confirm that the file was deleted
    assert not os.path.exists(filename)
예제 #3
0
파일: lsfdo.py 프로젝트: gorysko/roundup
def _cli_run_task(filename):
    ns, task = filemsg.load(filename)
    do(ns, task)