def METHOD_NAME(tmp_path, mocker):
    mocker.patch('feeluown.collection.resolve',
                 side_effect=ResolveFailed)
    path = tmp_path / 'test.fuo'
    path.touch()
    path.write_text('...')
    coll = Collection(str(path))
    coll.load()
    assert len(coll.models) == 0
    mocker.patch('feeluown.collection.resolve',
                 side_effect=ResolverNotFound)
    coll.load()
    assert len(coll.models) == 0