def METHOD_NAME():
    try:
        os.mkdir(macro.MACRO_STORAGE_ROOT)
    except OSError as e:
        if e.errno == errno.EEXIST:
            raise Exception("Storage directory should not exist when running tests")
        raise
    os.mkdir(macro.MACRO_SYS_LOG_PATH)
    os.mkdir(os.path.join(macro.MACRO_STORAGE_ROOT, 'static'))
    os.mkdir(os.path.join(macro.MACRO_STORAGE_ROOT, 'static', 'media'))
    os.symlink('ad', os.path.join(macro.MACRO_STORAGE_ROOT, 'static', 'media', 'ax'))
    try:
        yield
    finally:
        shutil.rmtree(macro.MACRO_STORAGE_ROOT)