Does a node list act as a truthy object?
()
| 47 | |
| 48 | |
| 49 | async def test_truthy(): |
| 50 | """Does a node list act as a truthy object?""" |
| 51 | nodes = NodeList() |
| 52 | assert not bool(nodes) |
| 53 | nodes._append(Widget()) |
| 54 | assert bool(nodes) |
| 55 | |
| 56 | |
| 57 | async def test_contains(): |