diff options
author | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-13 15:49:47 (GMT) |
---|---|---|
committer | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-13 15:49:47 (GMT) |
commit | a0613664b4c32676a5c4b6681279eef8606b47cf (patch) | |
tree | 9c6395115b9104f8e17c4e90ba6b1bcaaffb3660 /bin | |
parent | 5b1b6738f438a6607179ee139ccdc8dc095f24ec (diff) |
flush after change
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/sample-client.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/sample-client.py b/bin/sample-client.py index 2a2b19c..12c5514 100755 --- a/bin/sample-client.py +++ b/bin/sample-client.py @@ -59,7 +59,20 @@ def main(): else: print "Found deleted value... oops" raise KeyError(uid) + + + uid2 = datastore.create(dict(title="cows", + mime_type="application/vnd.oasis.opendocument.text"), + os.path.abspath('tests/funkyabi.odt')) + + datastore.complete_indexing() + assert datastore.find(dict(fulltext="vaca"))[0][0]['uid'] == uid2 + print "found in binary file :: ODT" + + datastore.delete(uid2) + datastore.complete_indexing() + print "ALL GOOD" if __name__ == '__main__': |