MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_replace

Method test_replace

test/ext/test_mutable.py:440–448  ·  test/ext/test_mutable.py::_MutableDictTestBase.test_replace
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

fixture_sessionFunction · 0.90
eq_Function · 0.90
FooClass · 0.70
addMethod · 0.45
flushMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected