(self, conn, encoding)
| 363 | |
| 364 | @pytest.mark.parametrize("encoding", ["utf8", crdb_encoding("latin9")]) |
| 365 | def test_as_bytes_encoding(self, conn, encoding): |
| 366 | conn.execute(f"set client_encoding to {encoding}") |
| 367 | assert sql.Literal(eur).as_bytes(conn) == f"'{eur}'".encode(encoding) |
| 368 | |
| 369 | def test_eq(self): |
| 370 | assert sql.Literal("foo") == sql.Literal("foo") |