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

Method test_no_changes

tests/test_funcs.py:676–684  ·  view source on GitHub ↗

No changes means a verbatim copy.

(self, C)

Source from the content-addressed store, hash-verified

674
675 @given(simple_classes())
676 def test_no_changes(self, C):
677 """
678 No changes means a verbatim copy.
679 """
680 i1 = C()
681 i2 = evolve(i1)
682
683 assert i1 is not i2
684 assert i1 == i2
685
686 @given(simple_classes(), st.data())
687 def test_change(self, C, data):

Callers

nothing calls this directly

Calls 2

evolveFunction · 0.90
CClass · 0.70

Tested by

no test coverage detected