def test():
    # This worker test requires a local server as it relies on the recursive dependencies
    import zerorpc
    workbench = zerorpc.Client(timeout=300, heartbeat=60)
    workbench.connect("tcp://127.0.0.1:4242")

    # Open a bunch of pcaps
    data_dir = '../data/pcap'
    file_list = [os.path.join(data_dir, child) for child in os.listdir(data_dir)]
    pcap_md5s = []
    for filename in file_list:

        # Skip OS generated files
        if '.DS_Store' in filename: continue        

        with open(filename,'rb') as f:
            base_name = os.path.basename(filename)
            pcap_md5s.append(workbench.store_sample(f.read(), base_name, 'pcap'))

    # Now store the sample set
    set_md5 = workbench.store_sample_set(pcap_md5s)
    print set_md5

    # Execute the worker (unit test)
    worker = PcapSetBro()
    output = worker.execute({'sample_set':{'md5_list':pcap_md5s}})
    print '\n<<< Unit Test >>>'
    import pprint
    pprint.pprint(output)

    # Execute the worker (server test)
    output = workbench.work_request('pcap_set_bro', set_md5)
    print '\n<<< Server Test >>>'
    import pprint
    pprint.pprint(output)
Draws a single tab.
dataset/ETHPy150Open SuperCowPowers/workbench/workbench/workers/timeout_corner/pcap_set_bro.py/test--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/wx/wx_upstream/aui/tabart.py/AuiDefaultTabArt.DrawTab