(self, document: DomDocument)
| 176 | assert document.get_unique_child.tag == "root" |
| 177 | |
| 178 | def test_node_assert_attr(self, document: DomDocument) -> None: |
| 179 | item = document.get_first_by_tag("item") |
| 180 | |
| 181 | item.assert_attr(name="a") |
| 182 | |
| 183 | with pytest.raises(AssertionError): |
| 184 | item.assert_attr(missing="foo") |
| 185 | |
| 186 | def test_node_getitem(self, document: DomDocument) -> None: |
| 187 | item = document.get_first_by_tag("item") |
nothing calls this directly
no test coverage detected