diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-05-27 21:04:15 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-05-27 21:04:15 +0000 |
| commit | 954724101205f56d426772d0018d4d581c3c5732 (patch) | |
| tree | 6aef08c35016bec5bf7ef2d4c1ba4e436d253b08 /test | |
| parent | cbdb5464fe4696edd89aedf40868a5e3dd5559ab (diff) | |
| download | sqlalchemy-954724101205f56d426772d0018d4d581c3c5732.tar.gz | |
fixed two bad __init__ calls
Diffstat (limited to 'test')
| -rw-r--r-- | test/orm/inheritance.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/orm/inheritance.py b/test/orm/inheritance.py index 0aabdb9be..8d1225088 100644 --- a/test/orm/inheritance.py +++ b/test/orm/inheritance.py @@ -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 = { |
