(self)
| 438 | eq_(f1.data, {"a": "b", "c": "d", "w": None}) |
| 439 | |
| 440 | def test_replace(self): |
| 441 | sess = fixture_session() |
| 442 | f1 = Foo(data={"a": "b"}) |
| 443 | sess.add(f1) |
| 444 | sess.flush() |
| 445 | |
| 446 | f1.data = {"b": "c"} |
| 447 | sess.commit() |
| 448 | eq_(f1.data, {"b": "c"}) |
| 449 | |
| 450 | def test_replace_itself_still_ok(self): |
| 451 | sess = fixture_session() |