B
    .(äb-  ã               @   sF   d dl mZ d dlZejdd„ ƒZdd„ Zdd„ Zd	d
„ Zdd„ ZdS )é    )Úunicode_literalsNc             C   s    | dƒ}d|d _ d|d _ |S )NzI hasZPRPr   ZVBZé   )Ztag_)Zen_tokenizerÚdoc© r   úQ/home/dcms/DCMS/lib/python3.7/site-packages/spacy/tests/doc/test_morphanalysis.pyÚi_has   s    

r   c             C   sD   | d j jst‚| d j jdks$t‚| d j j| d j jks@t‚d S )Nr   r   )ÚmorphÚidÚAssertionError)r   r   r   r   Útest_token_morph_id   s    r   c             C   sH   | d j j| jjd kst‚| d j jdks0t‚| d j jdksDt‚d S )Nr   ÚPronType_prsr   )r   Ú	pron_typeZvocabÚstringsr
   Z
pron_type_)r   r   r   r   Útest_morph_props   s    r   c             C   s8   t | d jƒdgkst‚t | d jƒdddgks4t‚d S )Nr   r   r   ZNumber_singZPerson_threeZVerbForm_fin)Úlistr   r
   )r   r   r   r   Útest_morph_iter   s    r   c             C   s   | d j  d¡dkst‚d S )Nr   r   r   )r   Úgetr
   )r   r   r   r   Útest_morph_get    s    r   )	Ú
__future__r   ZpytestZfixturer   r   r   r   r   r   r   r   r   Ú<module>   s   