Beispiel #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)
Beispiel #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)
Beispiel #3
0
def _cli_run_task(filename):
    ns, task = filemsg.load(filename)
    do(ns, task)