| 975 | |
| 976 | @testing.emits_warning("Column-expression-level unary distinct") |
| 977 | def test_column_accessor_unary(self, connection): |
| 978 | users = self.tables.users |
| 979 | |
| 980 | connection.execute(users.insert(), dict(user_id=1, user_name="john")) |
| 981 | |
| 982 | # unary expressions |
| 983 | r = connection.execute( |
| 984 | select(users.c.user_name.distinct()).order_by(users.c.user_name) |
| 985 | ).first() |
| 986 | eq_(r._mapping[users.c.user_name], "john") |
| 987 | eq_(r.user_name, "john") |
| 988 | |
| 989 | @testing.fixture |
| 990 | def _ab_row_fixture(self, connection): |