From 2d154b01f15b1c9addd16fde3d3299224baa5d22 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 26 Feb 2012 18:43:36 -0500 Subject: [PATCH] add tests for #2128 --- test/orm/test_attributes.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) -- 2.47.2