def clientServerDownloadOptions(self, options, output='/tmp/out'):
    'Fire up a client and a server and do a download.'
    root = os.path.dirname(os.path.abspath(__file__))
    server = tftpy.TftpServer(root)
    client = tftpy.TftpClient('localhost', 20001, options)
    child_pid = os.fork()
    if child_pid:
        try:
            time.sleep(1)
            client.download('640KBFILE', output)
        finally:
            os.kill(child_pid, 15)
            os.waitpid(child_pid, 0)
    else:
        server.listen('localhost', 20001)
Fire up a client and a server and do a download.
def clientServerDownloadOptions(self, options, output='/tmp/out'):
    
    root = os.path.dirname(os.path.abspath(__file__))
    server = tftpy.TftpServer(root)
    client = tftpy.TftpClient('localhost', 20001, options)
    child_pid = os.fork()
    if child_pid:
        try:
            time.sleep(1)
            client.download('640KBFILE', output)
        finally:
            os.kill(child_pid, 15)
            os.waitpid(child_pid, 0)
    else:
        server.listen('localhost', 20001)