Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Saller <bcsaller@objectrealms.net>2007-07-13 04:28:30 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-07-13 04:28:30 (GMT)
commita41d2d5ca21115f3b76a789f5874f35dca089a3d (patch)
tree42ddcb1db77c01ecba8815d1f04b56348c44b145 /tests
parent32728d52c6099933df7d452003248634c61b07a2 (diff)
repr on content
show a more complex query in the test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xapianindex.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_xapianindex.py b/tests/test_xapianindex.py
index cf39f01..db6afef 100644
--- a/tests/test_xapianindex.py
+++ b/tests/test_xapianindex.py
@@ -1,5 +1,3 @@
-from testutils import waitforindex
-
from olpc.datastore.xapianindex import IndexManager
import os
from datetime import datetime
@@ -70,7 +68,7 @@ class Test(unittest.TestCase):
#print "%s in %s %s/sec" % (count, delta, count/delta)
# wait for indexing to finish
- waitforindex(im)
+ im.complete_indexing()
# test basic search performance
results = list(im.search('peek')[0])
@@ -78,7 +76,8 @@ class Test(unittest.TestCase):
# this indicates that we found text inside binary content that
# we expected
assert 'test.pdf' in set(r.get_property('filename') for r in results)
-
+
+ assert im.search('mimetype:application/pdf filename:test.pdf peek')[1] == 1
def test_suite():