diff options
author | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-13 08:25:31 (GMT) |
---|---|---|
committer | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-13 08:25:31 (GMT) |
commit | d4f36128d2e5ff470ee6fa96c361d11e401d7346 (patch) | |
tree | a5b2cb1e6a4a2c4e56348931f04fd64ea3d65f23 /tests | |
parent | d08f6882e4f64759210663ba03eca182f5dea105 (diff) |
mimetype -> mime_type
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_xapianindex.py | 4 | ||||
-rw-r--r-- | tests/xapianindex.txt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_xapianindex.py b/tests/test_xapianindex.py index db6afef..f9039e6 100644 --- a/tests/test_xapianindex.py +++ b/tests/test_xapianindex.py @@ -24,7 +24,7 @@ def index_file(iconn, filepath): - props = {'mimetype' : mimetype, 'mtime:date' : mtime, + props = {'mime_type' : mimetype, 'mtime:date' : mtime, 'ctime:date' : ctime,} if filepath: @@ -77,7 +77,7 @@ class Test(unittest.TestCase): # 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 + assert im.search('mime_type:application/pdf filename:test.pdf peek')[1] == 1 def test_suite(): diff --git a/tests/xapianindex.txt b/tests/xapianindex.txt index 354d7a8..5638851 100644 --- a/tests/xapianindex.txt +++ b/tests/xapianindex.txt @@ -20,7 +20,7 @@ First clean up any old test data. Now add the file to the index. >>> props = dict(title="PDF Document", -... mimetype="application/pdf") +... mime_type="application/pdf") >>> uid = im.index(props, "test.pdf") @@ -57,7 +57,7 @@ title works as well. Searching for documents that are PDF works as expected here. Here we use the dictionary form of the query where each field name is given and creates a search. ->>> assert expect_single(im.search(dict(mimetype='application/pdf'))).id == uid +>>> assert expect_single(im.search(dict(mime_type='application/pdf'))).id == uid Punctuation is fine. |