Shallow asdict returns correct dict.
(self, C, dict_factory)
| 50 | |
| 51 | @given(st.sampled_from(MAPPING_TYPES)) |
| 52 | def test_shallow(self, C, dict_factory): |
| 53 | """ |
| 54 | Shallow asdict returns correct dict. |
| 55 | """ |
| 56 | assert {"x": 1, "y": 2} == asdict( |
| 57 | C(x=1, y=2), False, dict_factory=dict_factory |
| 58 | ) |
| 59 | |
| 60 | @given(st.sampled_from(MAPPING_TYPES)) |
| 61 | def test_recurse(self, C, dict_class): |