(self)
| 3949 | _register_attribute(A, "bs", uselist=True, useobject=True) |
| 3950 | |
| 3951 | def test_expired(self): |
| 3952 | A, B = self.A, self.B |
| 3953 | a1 = A() |
| 3954 | coll = a1.bs |
| 3955 | a1.bs.append(B()) |
| 3956 | state = attributes.instance_state(a1) |
| 3957 | state._expire(state.dict, set()) |
| 3958 | assert_warns(Warning, coll.append, B()) |
| 3959 | |
| 3960 | def test_replaced(self): |
| 3961 | A, B = self.A, self.B |
nothing calls this directly
no test coverage detected