From 45391ed941b59c5e2fd0706c6ba05ecf06b7a0e8 Mon Sep 17 00:00:00 2001 From: Benjamin Saller Date: Wed, 01 Aug 2007 02:26:53 +0000 Subject: added an additional test of update --- diff --git a/tests/mountpoints.txt b/tests/mountpoints.txt index dbbf033..695e7d2 100644 --- a/tests/mountpoints.txt +++ b/tests/mountpoints.txt @@ -172,6 +172,23 @@ The file was properly created in the expected place. >>> assert os.path.exists('/tmp/store3/one.txt') +Now let's update that file. + +>>> fn = ds.get_filename(u1) +>>> fp = open(fn, 'w') +>>> print >>fp, "This is new content" +>>> fp.close() + +>>> ds.update(pen_copy, props, fn) +>>> ds.complete_indexing() + +and verify it worked. + +>>> result, count = ds.find(dict(query="new content")) +>>> assert count == 1 +>>> assert result[0]['uid'] == pen_copy + + We also need to be sure that delete commands work on inplace mounts. We will delete the object from the datastore and then verify -- cgit v0.9.1