]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add tests for #2128
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 26 Feb 2012 23:43:36 +0000 (18:43 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 26 Feb 2012 23:43:36 +0000 (18:43 -0500)
test/orm/test_attributes.py

index e8b93c58dfa900158db0eeb3d03c5d6e171634c2..e94afdb1be6d2b509d01fea54558283b59dec12d 100644 (file)
@@ -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)