@testing.requires.duplicate_names_in_cursor_description
    def test_ambiguous_column_contains(self):
        users = self.tables.users
        addresses = self.tables.addresses

        # ticket 2702.  in 0.7 we'd get True, False.
        # in 0.8, both columns are present so it's True;
        # but when they're fetched you'll get the ambiguous error.
        users.insert().execute(user_id=1, user_name='john')
        result = select([users.c.user_id, addresses.c.user_id]).\
            select_from(users.outerjoin(addresses)).execute()
        row = result.first()

        eq_(
            set([row in users.c.user_id, addresses.c.user_id in row]),
            set([True])
        )
dataset/ETHPy150Open zzzeek/sqlalchemy/test/sql/test_resultset.py/ResultProxyTest.test_ambiguous_column_contains/swapped operands of `in`