def test_remove_invalid_pk(self):
""" Test removing an object that is not in the index.
Removing an object that is not in the index should raise a
NotFoundError
"""
thread = create_thread()
self.backend.add(thread)
self.backend.remove(thread)
# try removing it after it's been removed
with self.assertRaises(NotFoundError):
self.backend.remove(thread)
test_search_backends.py 文件源码
python
阅读 16
收藏 0
点赞 0
评论 0
评论列表
文章目录