Test cloning with new id.
(self)
| 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.""" |