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

Method test_shallow

tests/test_funcs.py:305–311  ·  view source on GitHub ↗

Shallow astuple returns correct dict.

(self, C, tuple_factory)

Source from the content-addressed store, hash-verified

303
304 @given(st.sampled_from(SEQUENCE_TYPES))
305 def test_shallow(self, C, tuple_factory):
306 """
307 Shallow astuple returns correct dict.
308 """
309 assert tuple_factory([1, 2]) == astuple(
310 C(x=1, y=2), False, tuple_factory=tuple_factory
311 )
312
313 @given(st.sampled_from(SEQUENCE_TYPES))
314 def test_recurse(self, C, tuple_factory):

Callers

nothing calls this directly

Calls 2

astupleFunction · 0.90
CClass · 0.70

Tested by

no test coverage detected