| 526 | .joinedload(Address.dingaling), |
| 527 | ) |
| 528 | def test_bound_options(self, test_case): |
| 529 | sess, User, Address, Dingaling = self._option_test_fixture() |
| 530 | |
| 531 | opt = testing.resolve_lambda(test_case, User=User, Address=Address) |
| 532 | |
| 533 | opt2 = pickle.loads(pickle.dumps(opt)) |
| 534 | eq_(opt.path, opt2.path) |
| 535 | for v1, v2 in zip(opt.context, opt2.context): |
| 536 | eq_(v1.local_opts, v2.local_opts) |
| 537 | |
| 538 | u1 = sess.query(User).options(opt).first() |
| 539 | pickle.loads(pickle.dumps(u1)) |
| 540 | |
| 541 | def test_collection_setstate(self): |
| 542 | """test a particular cycle that requires CollectionAdapter |