Can we check if a widget is (not) within the list?
()
| 55 | |
| 56 | |
| 57 | async def test_contains(): |
| 58 | """Can we check if a widget is (not) within the list?""" |
| 59 | widget = Widget() |
| 60 | nodes = NodeList() |
| 61 | assert widget not in nodes |
| 62 | nodes._append(widget) |
| 63 | assert widget in nodes |
| 64 | assert Widget() not in nodes |
| 65 | |
| 66 | |
| 67 | async def test_index(): |