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

Method test_clone_with_id

core/tests/python/tests/test_web.py:523–528  ·  view source on GitHub ↗

Test cloning with new id.

(self)

Source from the content-addressed store, hash-verified

521 assert clone._dom_element is not original._dom_element
522
523 def test_clone_with_id(self):
524 """Test cloning with new id."""
525 original = web.div("Content", id="original")
526 clone = original.clone(clone_id="cloned")
527 assert clone.id == "cloned"
528 assert original.id == "original"
529
530 def test_for_attribute(self):
531 """Test that for_ maps to htmlFor."""

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected