MCPcopy Index your code
hub / github.com/pyscript/pyscript / test_append_collection

Method test_append_collection

core/tests/python/tests/test_web.py:282–291  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

280 assert div.children[-1].id == new_el.id
281
282 def test_append_collection(self):
283 id_ = "element-append-tests"
284 div = web.page[f"#{id_}"]
285 len_children_before = len(div.children)
286 collection = web.page.find(".collection")
287 div.append(collection)
288 assert len(div.children) == len_children_before + len(collection)
289
290 for i in range(len(collection)):
291 assert div.children[-1 - i].id == collection[-1 - i].id
292
293 """
294 Ensure that appending a string adds a text node.

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected