(self)
| 934 | eq_(v2.__getstate__()["_of_type"], serialized_of_type) |
| 935 | |
| 936 | def test_load(self): |
| 937 | s = fixture_session() |
| 938 | |
| 939 | with_poly = with_polymorphic(Person, [Engineer, Manager], flat=True) |
| 940 | emp = ( |
| 941 | s.query(Company) |
| 942 | .options(subqueryload(Company.employees.of_type(with_poly))) |
| 943 | .first() |
| 944 | ) |
| 945 | |
| 946 | pickle.loads(pickle.dumps(emp)) |
| 947 | |
| 948 | |
| 949 | class PolymorphicDeferredTest(fixtures.MappedTest): |
nothing calls this directly
no test coverage detected