(self)
| 71 | assert list(d._container.keys()) == new_order |
| 72 | |
| 73 | def test_delete(self) -> None: |
| 74 | d: Container[int, bool] = Container(5) |
| 75 | |
| 76 | for i in range(5): |
| 77 | d[i] = True |
| 78 | |
| 79 | del d[0] |
| 80 | assert 0 not in d |
| 81 | |
| 82 | d.pop(1) |
| 83 | assert 1 not in d |
| 84 | |
| 85 | d.pop(1, None) |
| 86 | |
| 87 | def test_get(self) -> None: |
| 88 | d: Container[int, bool | int] = Container(5) |