MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_remove

Method test_remove

test/ext/test_mutable.py:706–716  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

704 eq_(f1.data, [1, [4, 2], 2])
705
706 def test_remove(self):
707 sess = fixture_session()
708
709 f1 = Foo(data=[1, 2, 3])
710 sess.add(f1)
711 sess.commit()
712
713 f1.data.remove(2)
714 sess.commit()
715
716 eq_(f1.data, [1, 3])
717
718 def test_sort(self):
719 sess = fixture_session()

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected