diff options
Diffstat (limited to 'test/orm/relationships.py')
-rw-r--r-- | test/orm/relationships.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/orm/relationships.py b/test/orm/relationships.py index e23f107ee..40f70bf62 100644 --- a/test/orm/relationships.py +++ b/test/orm/relationships.py @@ -999,13 +999,17 @@ class CustomCollectionsTest(ORMTest): pass class MyCollection(object): - def __init__(self): self.data = [] + def __init__(self): + self.data = [] @collection.appender - def append(self, value): self.data.append(value) + def append(self, value): + self.data.append(value) @collection.remover - def remove(self, value): self.data.remove(value) + def remove(self, value): + self.data.remove(value) @collection.iterator - def __iter__(self): return iter(self.data) + def __iter__(self): + return iter(self.data) mapper(Parent, sometable, properties={ 'children':relation(Child, collection_class=MyCollection) |