diff options
Diffstat (limited to 'test/orm/session.py')
-rw-r--r-- | test/orm/session.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/orm/session.py b/test/orm/session.py index 8c93eacbc..0d0900c3a 100644 --- a/test/orm/session.py +++ b/test/orm/session.py @@ -648,6 +648,18 @@ class ScopedMapperTest(PersistTest): pass Session.mapper(Foo, table2) assert hasattr(Foo, 'query') + + ext = MapperExtension() + + class Bar(object): + pass + Session.mapper(Bar, table2, extension=[ext]) + assert hasattr(Bar, 'query') + + class Baz(object): + pass + Session.mapper(Baz, table2, extension=ext) + assert hasattr(Baz, 'query') def test_validating_constructor(self): s2 = SomeObject(someid=12) |