MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_object_del

Method test_object_del

test/orm/test_attributes.py:1880–1889  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1878 eq_(self._someattr_history(f), ([None], (), ()))
1879
1880 def test_object_del(self):
1881 Foo, Bar = self._two_obj_fixture(uselist=False)
1882 f = Foo()
1883 b1 = Bar()
1884 f.someattr = b1
1885
1886 self._commit_someattr(f)
1887
1888 del f.someattr
1889 eq_(self._someattr_history(f), ((), (), [b1]))
1890
1891 def test_object_del_expired(self):
1892 Foo, Bar = self._two_obj_fixture(uselist=False)

Callers

nothing calls this directly

Calls 6

_two_obj_fixtureMethod · 0.95
_commit_someattrMethod · 0.95
_someattr_historyMethod · 0.95
eq_Function · 0.90
FooClass · 0.70
BarClass · 0.70

Tested by

no test coverage detected