(self)
| 323 | eq_(j.other, 42) |
| 324 | |
| 325 | def test_modified(self): |
| 326 | Json = self.classes.Json |
| 327 | s = Session(testing.db) |
| 328 | |
| 329 | j = Json(json={}) |
| 330 | s.add(j) |
| 331 | s.commit() |
| 332 | |
| 333 | i = inspect(j) |
| 334 | is_(i.modified, False) |
| 335 | in_("json", i.unmodified) |
| 336 | |
| 337 | j.other = 42 |
| 338 | |
| 339 | is_(i.modified, True) |
| 340 | not_in("json", i.unmodified) |
| 341 | |
| 342 | def test_cast_type(self): |
| 343 | Json = self.classes.Json |