(self)
| 357 | eq_(f1.data, {"a": "z"}) |
| 358 | |
| 359 | def test_pop(self): |
| 360 | sess = fixture_session() |
| 361 | |
| 362 | f1 = Foo(data={"a": "b", "c": "d"}) |
| 363 | sess.add(f1) |
| 364 | sess.commit() |
| 365 | |
| 366 | eq_(f1.data.pop("a"), "b") |
| 367 | sess.commit() |
| 368 | |
| 369 | assert_raises(KeyError, f1.data.pop, "g") |
| 370 | |
| 371 | eq_(f1.data, {"c": "d"}) |
| 372 | |
| 373 | def test_pop_default(self): |
| 374 | sess = fixture_session() |
nothing calls this directly
no test coverage detected