From c0fe1c29e6a99ca35360bfdae886b2181e00b4fd Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Mon, 21 May 2012 14:41:55 +0200 Subject: [PATCH] fix test --- apps/search/tests/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/search/tests/index.py b/apps/search/tests/index.py index ef253e4c1..738288892 100644 --- a/apps/search/tests/index.py +++ b/apps/search/tests/index.py @@ -47,8 +47,7 @@ class BookSearchTests(WLTestCase): b.book_id == self.book.id a = SearchResult.aggregate(books) # just one fragment hit. - assert len(filter(lambda x: x[1], a[0].hits)) == 1 - print a[0].process_hits() + assert len(a[0].hits) == 1 def test_search_perfect_author_title(self): books = self.search.search_perfect_book("szarzyński anusie") -- 2.20.1