()
| 615 | |
| 616 | |
| 617 | def test_copy_preserves_equality(): |
| 618 | class Root(RootModel[int]): |
| 619 | pass |
| 620 | |
| 621 | root_model = Root(1) |
| 622 | |
| 623 | copied = root_model.model_copy() |
| 624 | assert root_model == copied |
| 625 | |
| 626 | deepcopied = root_model.model_copy(deep=True) |
| 627 | assert root_model == deepcopied |
| 628 | |
| 629 | |
| 630 | def test_root_model_shallow_copy() -> None: |
nothing calls this directly
no test coverage detected