(self)
| 245 | expect(roles.ExpressionElementRole, Thing()) |
| 246 | |
| 247 | def test_no_statement_text_coercion(self): |
| 248 | with testing.expect_raises_message( |
| 249 | exc.ArgumentError, |
| 250 | r"Textual SQL expression 'select \* from table' should be " |
| 251 | "explicitly declared", |
| 252 | ): |
| 253 | expect(roles.StatementRole, "select * from table") |
| 254 | |
| 255 | def test_select_statement_no_text_coercion(self): |
| 256 | assert_raises_message( |