1
0
Fork 0

Add a test for the unicode handling in unknown types.

This commit is contained in:
Amjith Ramanujam 2015-01-30 18:15:40 -08:00
parent 3d501471c8
commit cf0f33ff01
1 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,9 @@
# coding=UTF-8
import pytest
import psycopg2
from textwrap import dedent
from utils import *
from utils import run, dbtest
@dbtest
def test_conn(executor):
@ -91,3 +93,7 @@ def test_bytea_field_support_in_output(executor):
"insert into binarydata (c) values (decode('DEADBEEF', 'hex'))")
assert u'\\xdeadbeef' in run(executor, "select * from binarydata", join=True)
@dbtest
def test_unicode_support_in_unknown_type(executor):
assert u'日本語' in run(executor, "SELECT '日本語' AS japanese;", join=True)