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-22 19:34:49 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-07-22 19:34:49 (GMT)
commit00570bc517b6698af52eca2f27d115e4c3c16d0c (patch)
treefe628544adbf5f140c39b5f4ae3f7e74de9a9b1a /tests
parent64b7f95ba456e4c2e00b9c866804b71435203e07 (diff)
inplace files return themselves on request for filename
files should be created on demand and not just on a generic 'get' call
Diffstat (limited to 'tests')
-rw-r--r--tests/mountpoints.txt18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/mountpoints.txt b/tests/mountpoints.txt
index 2146c71..c1f4619 100644
--- a/tests/mountpoints.txt
+++ b/tests/mountpoints.txt
@@ -137,7 +137,23 @@ Verify that we can get the properties of objects on the inplace
stores.
>>> uid = result[0]['uid']
->>> assert ds.get_properties(uid)['title'] == "doc4"
+>>> props = ds.get_properties(uid)
+>>> assert props['title'] == "doc4"
+
+
+Currently sugar defines doing a copy as zeroing out the uid and
+changing the mountpoint. Lets copy an object from mp3 to mp1, the
+primary store.
+>>> props['mountpoint'] = mountpoint
+>>> fn = ds.get_filename(uid)
+
+>>> copyuid = ds.create(props, fn)
+
+>>> ds.complete_indexing()
+
+>>> result, count = ds.find(dict(fulltext="four"))
+>>> assert count == 2
+
>>> ds.stop(); del ds