def prepare_test_files(filename):
    copy_filename = ('copy_' + filename)
    tmppath = join('/tmp', filename)
    copypath = join('/tmp', copy_filename)
    path = join(THIS_DIR, 'test_files', filename)
    with open(path, 'rb') as f:
        content = f.read()
    with open(copypath, 'wb') as f:
        f.write(content)
    return (path, copypath, tmppath, content)
def prepare_test_files(filename):
    copy_filename = ('copy_' + filename)
    tmppath = join('/tmp', filename)
    copypath = join('/tmp', copy_filename)
    path = join(THIS_DIR, 'test_files', filename)
    with open(path, 'rb') as f:
        content = f.read()
    with open(copypath, 'wb') as f:
        f.write(content)
    return (path, copypath, tmppath, content)