Empty classes without changes get copied.
(self, slots, frozen)
| 658 | |
| 659 | @given(slots=st.booleans(), frozen=st.booleans()) |
| 660 | def test_empty(self, slots, frozen): |
| 661 | """ |
| 662 | Empty classes without changes get copied. |
| 663 | """ |
| 664 | |
| 665 | @attr.s(slots=slots, frozen=frozen) |
| 666 | class C: |
| 667 | pass |
| 668 | |
| 669 | i1 = C() |
| 670 | i2 = evolve(i1) |
| 671 | |
| 672 | assert i1 is not i2 |
| 673 | assert i1 == i2 |
| 674 | |
| 675 | @given(simple_classes()) |
| 676 | def test_no_changes(self, C): |