def test_mapping_to_join_explicit_prop(self):

        User, addresses, users = (self.classes.User,
                                  self.tables.addresses,
                                  self.tables.users)

        usersaddresses = sa.join(users, addresses, users.c.id
                                 == addresses.c.user_id)
        mapper(User, usersaddresses, primary_key=[users.c.id],
               properties={'add_id': addresses.c.id}
               )
        l = create_session().query(User).order_by(users.c.id).all()
        eq_(l, self.static.user_result[:3])
Authenticates/installs this app for the current user.
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_mapper.py/MapperTest.test_mapping_to_join_explicit_prop--crossover with--dataset/ETHPy150Open IanLewis/kay/kay/ext/gaema/auth.py/FacebookMixin.authenticate_redirect