tests: fix broken test case, add more WeakNodePath comparisons

This commit is contained in:
rdb 2018-05-24 22:25:20 +02:00
parent ec04dbed0c
commit ddc45e3529
2 changed files with 12 additions and 4 deletions

View File

@ -91,6 +91,14 @@ def test_weak_nodepath_comparison():
assert weak == path
assert weak <= path
assert path <= weak
assert weak >= path
assert path >= weak
assert not (path != weak)
assert not (weak != path)
assert not (weak > path)
assert not (path > weak)
assert not (weak < path)
assert not (path < weak)
assert hash(path) == hash(weak)
assert weak.get_node_path() == path

View File

@ -63,11 +63,11 @@ def test_updateseq_fresh():
old = UpdateSeq.old()
assert not (seq == old)
assert not (seq >= old)
assert not (seq > old)
assert not (seq <= old)
assert not (seq < old)
assert seq != old
assert seq <= old
assert seq < old
assert seq >= old
assert seq > old
def test_updateseq_old():