]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixed two bad __init__ calls
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 27 May 2007 21:04:15 +0000 (21:04 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 27 May 2007 21:04:15 +0000 (21:04 +0000)
test/orm/inheritance.py

index 0aabdb9be2b35ee6c0dedebe65e051ad45378a42..8d12250887f74acac38c4392bb010c42c1d9f6d1 100644 (file)
@@ -97,9 +97,9 @@ class InheritTest2(testbase.ORMTest):
             Column('bar_id', Integer, ForeignKey('bar.bid')))
 
     def testget(self):
-        class Foo(object):pass
-        def __init__(self, data=None):
-            self.data = data
+        class Foo(object):
+            def __init__(self, data=None):
+                self.data = data
         class Bar(Foo):pass
         
         mapper(Foo, foo)
@@ -418,7 +418,9 @@ class InheritTest7(testbase.ORMTest):
             
     def testone(self):
         class User(object):pass
-        class Role(object):pass
+        class Role(object):
+            def __init__(self, description):
+                self.description = description
         class Admin(User):pass
         role_mapper = mapper(Role, roles)
         user_mapper = mapper(User, users, properties = {