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-23 21:13:59 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-07-23 21:13:59 (GMT)
commit46052f494e3d2cc7db86c3af96072f23503c659a (patch)
tree6de6c1efe5888843c5423ad6bc8729572dcbc866 /tests
parent00570bc517b6698af52eca2f27d115e4c3c16d0c (diff)
create new files on inplace stores properly
Diffstat (limited to 'tests')
-rw-r--r--tests/mountpoints.txt13
-rw-r--r--tests/runalltests.py1
2 files changed, 13 insertions, 1 deletions
diff --git a/tests/mountpoints.txt b/tests/mountpoints.txt
index c1f4619..304d4eb 100644
--- a/tests/mountpoints.txt
+++ b/tests/mountpoints.txt
@@ -151,9 +151,22 @@ primary store.
>>> ds.complete_indexing()
+
>>> result, count = ds.find(dict(fulltext="four"))
>>> assert count == 2
+We also need to test that we can copy from a normal store to an
+inplace one. Lets move the object with u1 to mp3
+
+>>> props = ds.get_properties(u1)
+>>> props['mountpoint'] = mp3
+>>> pen_copy = ds.create(props, ds.get_filename(u1))
+
+>>> ds.complete_indexing()
+
+>>> result, count = ds.find(dict(mountpoints=[mp3], filename="one.txt"))
+>>> assert count == 1
+>>> assert result[0]['uid'] == pen_copy
>>> ds.stop(); del ds
diff --git a/tests/runalltests.py b/tests/runalltests.py
index 52ec486..564cee2 100644
--- a/tests/runalltests.py
+++ b/tests/runalltests.py
@@ -8,7 +8,6 @@
# Alternatively use the testrunner:
# python /path/to/Zope/utilities/testrunner.py -qa
#
-
import os, sys
import unittest
import doctest