def test_copy(self, record): record.x = 1 record.y = 2 new_record = Record(record) new_record.x = 4 assert record.x == 1