def METHOD_NAME():
    patcher = mock.patch.object(ProjectPermission, '__bases__', (FakeProjectPermission,))
    with patcher:
        patcher.is_local = True  # 标注为本地属性，__exit__ 的时候恢复成 patcher.temp_original
        yield ProjectPermission()