U
    Be                     @   s"   d dl Zd dlZG dd dZdS )    Nc                   @   s   e Zd Zdd Zdd ZdS )TestDatac              	   C   s&   t t tjd W 5 Q R X d S )Nzno_such_resource/foo)pytestraisesLookupErrornltkdatafind)self r
   t/var/www/nmhs-web.org.in/public_html/infoladakh/backend/venv/lib/python3.8/site-packages/nltk/test/unit/test_data.pytest_find_raises_exception   s    z#TestData.test_find_raises_exceptionc              	   C   s>   d}t t&}tj| |t|ks0tdW 5 Q R X d S )Nzno_such_thing/barz5Exception message does not include full resource name)r   r   r   r   r   r   strAssertionError)r	   Zno_such_thingexcr
   r
   r   2test_find_raises_exception_with_full_resource_name
   s    z;TestData.test_find_raises_exception_with_full_resource_nameN)__name__
__module____qualname__r   r   r
   r
   r
   r   r      s   r   )Z	nltk.datar   r   r   r
   r
   r
   r   <module>   s   