From: Mike Bayer Date: Sun, 26 Feb 2012 23:43:36 +0000 (-0500) Subject: add tests for #2128 X-Git-Tag: rel_0_7_6~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d154b01f15b1c9addd16fde3d3299224baa5d22;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add tests for #2128 --- diff --git a/test/orm/test_attributes.py b/test/orm/test_attributes.py index e8b93c58df..e94afdb1be 100644 --- a/test/orm/test_attributes.py +++ b/test/orm/test_attributes.py @@ -1405,6 +1405,18 @@ class HistoryTest(fixtures.TestBase): f = Foo() eq_(self._someattr_history(f), ((), (), ())) + def test_object_init(self): + Foo = self._fixture(uselist=False, useobject=True, + active_history=False) + f = Foo() + eq_(self._someattr_history(f), ((), (), ())) + + def test_object_init_active_history(self): + Foo = self._fixture(uselist=False, useobject=True, + active_history=True) + f = Foo() + eq_(self._someattr_history(f), ((), (), ())) + def test_scalar_no_init_side_effect(self): Foo = self._fixture(uselist=False, useobject=False, active_history=False)