(self)
| 194 | ) |
| 195 | |
| 196 | def test_populate_dict(self): |
| 197 | uowcommit, a1, b1, a_mapper, b_mapper = self._fixture() |
| 198 | a1.obj().id = 10 |
| 199 | pairs = [(a_mapper.c.id, b_mapper.c.id)] |
| 200 | dest = {} |
| 201 | sync._populate_dict(a1, a_mapper, dest, pairs) |
| 202 | eq_(dest, {"id": 10}) |
| 203 | |
| 204 | def test_populate_dict_unmapped(self): |
| 205 | uowcommit, a1, b1, a_mapper, b_mapper = self._fixture() |