(self)
| 167 | ) |
| 168 | |
| 169 | def test_no_instrumentation(self): |
| 170 | users = self.tables.users |
| 171 | |
| 172 | self.mapper_registry.map_imperatively(User, users) |
| 173 | u1 = User(name="ed") |
| 174 | u1_pickled = pickle.dumps(u1, -1) |
| 175 | |
| 176 | clear_mappers() |
| 177 | |
| 178 | self.mapper_registry.map_imperatively(User, users) |
| 179 | |
| 180 | u1 = pickle.loads(u1_pickled) |
| 181 | # this fails unless the InstanceState |
| 182 | # compiles the mapper |
| 183 | eq_(str(u1), "User(name='ed')") |
| 184 | |
| 185 | def test_class_deferred_cols(self): |
| 186 | addresses, users = (self.tables.addresses, self.tables.users) |
nothing calls this directly
no test coverage detected