diff options
author | Benjamin Saller <bcsaller@objectrealms.net> | 2007-08-26 02:26:19 (GMT) |
---|---|---|
committer | Benjamin Saller <bcsaller@objectrealms.net> | 2007-08-26 02:26:19 (GMT) |
commit | f05bfc05d458fe0897c7bb8febab314fcd38e1c1 (patch) | |
tree | df18846c5303960bb4baed2de7ed3bf1044e784e /tests | |
parent | 30e5e3dca208ea3cfa02af336699d9304ed2a61b (diff) |
passing all tests in test-trial3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple_versions.txt | 4 | ||||
-rw-r--r-- | tests/test_hgrepo.py | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/simple_versions.txt b/tests/simple_versions.txt index df6ce9b..d35882f 100644 --- a/tests/simple_versions.txt +++ b/tests/simple_versions.txt @@ -86,10 +86,10 @@ Lets check out the head version of this document now. >>> props, rev2 = ds.checkout(uid, dir='/tmp') -Check that the id is the same and the version id isn't. +Check that the id and vid are correct. >>> assert props['uid'] == uid ->>> assert props['vid'] != vid +>>> assert props['vid'] == vid Verify the contents of the file is as expected. diff --git a/tests/test_hgrepo.py b/tests/test_hgrepo.py index c67c506..0a05732 100644 --- a/tests/test_hgrepo.py +++ b/tests/test_hgrepo.py @@ -46,8 +46,8 @@ class Test(unittest.TestCase): co1 = os.path.join(DATA_1, "co1") co2 = os.path.join(DATA_1, "co2") - repo.dump("foo", 0, co1) - repo.dump("foo", 1, co2) + repo.dump("foo", 0, co1, '', '') + repo.dump("foo", 1, co2, '', '') assert open(co1, 'r').read() == TEXT_1 assert open(co2, 'r').read() == TEXT_2 @@ -75,7 +75,8 @@ class Test(unittest.TestCase): got = open(fn, 'r').read() assert got == d - uid, rev = bs.checkin(dict(uid=uid, title="B"), tmpData(d2)) + props['title'] = "B" + uid, rev = bs.checkin(props, tmpData(d2)) bs.complete_indexing() |