MCPcopy
hub / github.com/python-attrs/attrs / test_lists_tuples

Method test_lists_tuples

tests/test_funcs.py:391–397  ·  view source on GitHub ↗

If recurse is True, also recurse into lists.

(self, container, C)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

astupleFunction · 0.90
CClass · 0.70

Tested by

no test coverage detected