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-08-16 10:41:43 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-08-16 10:41:43 (GMT)
commit029629e7c79bdaf33191a07f2769e37e93bcc7fb (patch)
tree8acc524e31d6bda20382cd3cafd07e82a4a2de6e /tests
parent91c3eebfbe6aa586150d9405792f6e02fb34fa81 (diff)
also drop the uid on the checkout copy
Diffstat (limited to 'tests')
-rw-r--r--tests/simple_versions.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/simple_versions.txt b/tests/simple_versions.txt
index 9be62bd..df6ce9b 100644
--- a/tests/simple_versions.txt
+++ b/tests/simple_versions.txt
@@ -49,7 +49,8 @@ To get a copy of this file out that we can manipulate we can use the
checkout command. By default checkout will check out the HEAD revsion
(the most recent) of a document. It returns the properties dictionary
and the filename of the checkout which is ours to manipulate.
->>> props, fn = ds.checkout(uid)
+
+>>> props, fn = ds.checkout(uid, dir='/tmp')
>>> assert props['title'] == "A day in the life"
>>> assert props['vid'] == str(vid)
@@ -64,9 +65,8 @@ Lets make a revision to this content.
We are going to check in the new file using the props dict of the last
call after making our modifications and supplying our new file.
-(note that we changed the case of 'life' here)
->>> props['title'] = "A day in the Life"
+>>> props['title'] = "A Night in the Life"
>>> uid, vid = ds.checkin(props, fn2)
>>> ds.complete_indexing()
@@ -84,7 +84,7 @@ Verify that the HEAD revision of the content is searchable by default.
Lets check out the head version of this document now.
->>> props, rev2 = ds.checkout(uid)
+>>> props, rev2 = ds.checkout(uid, dir='/tmp')
Check that the id is the same and the version id isn't.