If recurse is True, also recurse into lists.
(self, container, C)
| 389 | |
| 390 | @given(container=st.sampled_from(SEQUENCE_TYPES)) |
| 391 | def test_lists_tuples(self, container, C): |
| 392 | """ |
| 393 | If recurse is True, also recurse into lists. |
| 394 | """ |
| 395 | assert (1, [(2, 3), (4, 5), "a"]) == astuple( |
| 396 | C(1, container([C(2, 3), C(4, 5), "a"])) |
| 397 | ) |
| 398 | |
| 399 | @given(st.sampled_from(SEQUENCE_TYPES)) |
| 400 | def test_dicts(self, C, tuple_factory): |