(self)
| 690 | eq_(v2.__getstate__()["_of_type"], serialized_of_type) |
| 691 | |
| 692 | def test_load(self): |
| 693 | s = fixture_session() |
| 694 | |
| 695 | with_poly = with_polymorphic(Person, [Engineer, Manager], flat=True) |
| 696 | emp = ( |
| 697 | s.query(Company) |
| 698 | .options(subqueryload(Company.employees.of_type(with_poly))) |
| 699 | .first() |
| 700 | ) |
| 701 | |
| 702 | pickle.loads(pickle.dumps(emp)) |
| 703 | |
| 704 | |
| 705 | class PolymorphicDeferredTest(fixtures.MappedTest): |
nothing calls this directly
no test coverage detected