관리-도구
편집 파일: test_unicode_ddl.cpython-38.pyc
U -?�f� � @ s� d dl mZ d dl mZ d dl mZ d dl mZ d dl mZ d dlmZ d dlmZ d dl m Z d d l mZ G d d� dej�Z dS ) � )�desc)� ForeignKey)�Integer)�MetaData)�testing)�eq_)�fixtures)�Column)�Tablec @ s@ e Zd ZdZdZedd� �Zdd� Zdd� Zd d � Z dd� Z d S )�UnicodeSchemaTest)Zunicode_ddlTc C s� t d|tdtdd�tdt�dd�at d|tdtddd �tdttd �dd�dd�at�d �r�t d|tdtddd�tdttd��tdttd��tdttd��dd�an4t d|tdtddd�tdt�tdt�tdt�dd�ad S )NZ unitable1� méilT)�primary_key� 測試)Z test_needs_fku Unitéble2�a)r �keyu unitable1.méil�b)r Zsqlite� 測試_idF)r Z autoincrement� unitable1_測試u unitable1.測試� Unitéble2_bu Unitéble2.b� 測試_selfu 測試.測試_id) r r r �t1r �t2r Zagainst�t3)�cls�metadata� r �Y/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/testing/suite/test_unicode_ddl.py� define_tables sp ��� ������zUnicodeSchemaTest.define_tablesc C s� |� t�� ddd�� |� t�� ddd�� |� t�� ddddd�� t|� t�� ��� dg� t|� t�� ��� dg� t|� t�� ��� dg� d S ) N� � �r r �r r �r r r r �r r �r r �r r r r )�executer �insertr r r �select�fetchall)�self� connectionr r r �test_insertY s �� zUnicodeSchemaTest.test_insertc C s0 |� t�� ddd�� |� t�� ddd�� |� t�� ddddd�� |� t�� ��� }t|jtj d d� t|jtj d d� |� t�� ��� }t|jtj d d� t|jtj d d� |� t�� ��� }t|jtj d d� t|jtj d d� t|jtj d d� t|jtj d d� d S )Nr r r r! r"