If recurse is True, also recurse into lists.
(self, container, C)
| 146 | |
| 147 | @given(container=st.sampled_from(SEQUENCE_TYPES)) |
| 148 | def test_lists_tuples(self, container, C): |
| 149 | """ |
| 150 | If recurse is True, also recurse into lists. |
| 151 | """ |
| 152 | assert { |
| 153 | "x": 1, |
| 154 | "y": [{"x": 2, "y": 3}, {"x": 4, "y": 5}, "a"], |
| 155 | } == asdict(C(1, container([C(2, 3), C(4, 5), "a"]))) |
| 156 | |
| 157 | @given(container=st.sampled_from(SEQUENCE_TYPES)) |
| 158 | def test_lists_tuples_retain_type(self, container, C): |