(self)
| 470 | eq_(d3, d4) |
| 471 | |
| 472 | def test_serialize(self): |
| 473 | d = util.immutabledict({1: 2, 3: 4}) |
| 474 | for loads, dumps in picklers(): |
| 475 | d2 = loads(dumps(d)) |
| 476 | |
| 477 | eq_(d2, {1: 2, 3: 4}) |
| 478 | |
| 479 | assert isinstance(d2, util.immutabledict) |
| 480 | |
| 481 | def test_repr(self): |
| 482 | # this is used by the stub generator in alembic |