mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Check also for the length and explicitly check that the first uids are different
This commit is contained in:
@@ -108,4 +108,6 @@ def test_insert_beginning():
|
||||
new_nodes = list(merge_doctrees(original, insert_beginning, is_paragraph))
|
||||
uids = [n.uid for n in insert_beginning.traverse(is_paragraph)]
|
||||
assert len(new_nodes) == 1
|
||||
assert len(uids) == 4
|
||||
assert original_uids == uids[1:]
|
||||
assert original_uids[0] != uids[0]
|
||||
|
||||
Reference in New Issue
Block a user