Test the data may be encoded then decoded
(data: object)
| 45 | ], |
| 46 | ) |
| 47 | def test_round_trip(data: object) -> None: |
| 48 | """Test the data may be encoded then decoded""" |
| 49 | encoded = dump(data) |
| 50 | assert isinstance(encoded, bytes) |
| 51 | decoded = load(encoded) |
| 52 | assert data == decoded |
| 53 | |
| 54 | |
| 55 | @pytest.mark.parametrize( |