(self, t_fixture, fn)
| 4952 | |
| 4953 | @testing.combinations(any_, all_, argnames="fn") |
| 4954 | def test_values_illegal(self, t_fixture, fn): |
| 4955 | t = t_fixture |
| 4956 | |
| 4957 | with expect_raises_message( |
| 4958 | exc.ArgumentError, |
| 4959 | "SQL expression element expected, got .* " |
| 4960 | "To create a column expression from a VALUES clause, " |
| 4961 | r"use the .scalar_values\(\) method.", |
| 4962 | ): |
| 4963 | fn(values(t.c.data).data([(1,), (42,)])) |
| 4964 | |
| 4965 | |
| 4966 | class BitOpTest(fixtures.TestBase, testing.AssertsCompiledSQL): |
nothing calls this directly
no test coverage detected